This class implements a very simple incode profiler. This profiler is NOT thread safe. It is mainly used to get some basic stats on the where the bottlenecks are during a file import/export operation. A simple example of usage:
More...
#include <CodeTimings.h>
|
static void | printReport (std::ostream &os) |
| call to output the report More...
|
|
static void | clearAll () |
| call to clear internal timers
|
|
static void | pushTime (const ProfilerSectionTag *entry) |
| do not call directly. Use the AL_BEGIN_PROFILE_SECTION macro More...
|
|
static void | popTime () |
| do not call directly. Use the AL_END_PROFILE_SECTION macro
|
|
This class implements a very simple incode profiler. This profiler is NOT thread safe. It is mainly used to get some basic stats on the where the bottlenecks are during a file import/export operation. A simple example of usage:
void func1() {
Sleep(1);
}
void func2() {
func1();
Sleep(1);
}
void func3() {
func1();
Sleep(1);
}
void myBigFunction()
{
func2();
func3();
AL_BEGIN_END_SECTION();
}
static void AL::maya::Profiler::printReport |
( |
std::ostream & |
os | ) |
|
|
static |
call to output the report
- Parameters
-
os | the stream to write the report to |
do not call directly. Use the AL_BEGIN_PROFILE_SECTION macro
- Parameters
-
entry | a unique tag for this code section. |
The documentation for this class was generated from the following file: