Audacity 3.2.0
Classes | Macros
Profiler.h File Reference
#include <mutex>
#include <vector>
#include <time.h>
#include "MemoryX.h"
Include dependency graph for Profiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Profiler
 A simple profiler to measure the average time lengths that a particular task/function takes. Currently not thread-safe and not thread-smart, but it will probably work fine if you use it on a high level. More...
 
class  TaskProfile
 a simple class to keep track of one task that may be called multiple times. More...
 

Macros

#define BEGIN_TASK_PROFILING(TASK_DESCRIPTION)   Profiler::Instance()->Begin(__FILE__,__LINE__,TASK_DESCRIPTION)
 
#define END_TASK_PROFILING(TASK_DESCRIPTION)   Profiler::Instance()->End(__FILE__,__LINE__,TASK_DESCRIPTION)
 

Macro Definition Documentation

◆ BEGIN_TASK_PROFILING

#define BEGIN_TASK_PROFILING (   TASK_DESCRIPTION)    Profiler::Instance()->Begin(__FILE__,__LINE__,TASK_DESCRIPTION)

Definition at line 35 of file Profiler.h.

◆ END_TASK_PROFILING

#define END_TASK_PROFILING (   TASK_DESCRIPTION)    Profiler::Instance()->End(__FILE__,__LINE__,TASK_DESCRIPTION)

Definition at line 36 of file Profiler.h.