Skip to content

A Realtime Sample Call Stack and Performance Profiling Library for C/C++.

Notifications You must be signed in to change notification settings

djoezeke/CProfiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CProfiler

Features:

  • Lightweight instrumentation
  • Multiple threads Support.
  • Console output for logging text.
  • Profiles itself.

Basic Usage

#define USE_START_STOP
#define USE_TIMEIT
#include "../profiler.h"

void Function()
{
    START();
    usleep(200);
    STOP();
}

void Function1()
{
    START();
    Function1();
    Function1();
    Function1();
    STOP();
}

void Function2()
{
    START();
    Function1();
    Function1();
    STOP();
}

int main()
{
    Function1();
    Function2();
    Function2();

    PROFILE();
    return 0;
}

About

A Realtime Sample Call Stack and Performance Profiling Library for C/C++.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published