![]() |
Audacity 3.2.0
|
a simple class to keep track of one task that may be called multiple times. More...
#include <Profiler.h>
Public Member Functions | |
| TaskProfile () | |
| Task Profile. More... | |
| virtual | ~TaskProfile () |
| void | Begin (const char *fileName, int lineNum, const char *taskDescription) |
| start the task timer. More... | |
| void | End (const char *fileName, int lineNum, const char *taskDescription) |
| end the task timer. More... | |
| double | ComputeAverageRunTime () |
Public Attributes | |
| ArrayOf< char > | mFileName |
| int | mLine |
| ArrayOf< char > | mDescription |
| int | mNumHits |
| clock_t | mCumTime |
| clock_t | mLastTime |
a simple class to keep track of one task that may be called multiple times.
Definition at line 69 of file Profiler.h.
| TaskProfile::TaskProfile | ( | ) |
Task Profile.
Definition at line 116 of file Profiler.cpp.
|
virtual |
Definition at line 122 of file Profiler.cpp.
| void TaskProfile::Begin | ( | const char * | fileName, |
| int | lineNum, | ||
| const char * | taskDescription | ||
| ) |
start the task timer.
Definition at line 127 of file Profiler.cpp.
References mDescription, mFileName, mLastTime, mLine, and ArrayOf< X >::reinit().
Referenced by Profiler::Begin().
| double TaskProfile::ComputeAverageRunTime | ( | ) |
| void TaskProfile::End | ( | const char * | fileName, |
| int | lineNum, | ||
| const char * | taskDescription | ||
| ) |
end the task timer.
Definition at line 143 of file Profiler.cpp.
References mCumTime, mLastTime, and mNumHits.
Referenced by Profiler::End().
| clock_t TaskProfile::mCumTime |
Definition at line 86 of file Profiler.h.
Referenced by ComputeAverageRunTime(), End(), and TaskProfile().
| ArrayOf<char> TaskProfile::mDescription |
Definition at line 84 of file Profiler.h.
Referenced by Begin().
| ArrayOf<char> TaskProfile::mFileName |
Definition at line 82 of file Profiler.h.
Referenced by Begin().
| clock_t TaskProfile::mLastTime |
Definition at line 87 of file Profiler.h.
| int TaskProfile::mLine |
Definition at line 83 of file Profiler.h.
Referenced by Begin().
| int TaskProfile::mNumHits |
Definition at line 85 of file Profiler.h.
Referenced by ComputeAverageRunTime(), End(), and TaskProfile().