AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AL::usdmaya::Profiler Class Reference

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 Public Member Functions

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
 

Detailed Description

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()
{
AL_BEGIN_PROFILE_SECTION(myBigFunction);
func2();
func3();
AL_BEGIN_END_SECTION();
}

Member Function Documentation

static void AL::usdmaya::Profiler::printReport ( std::ostream &  os)
static

call to output the report

Parameters
osthe stream to write the report to
static void AL::usdmaya::Profiler::pushTime ( const ProfilerSectionTag entry)
static

do not call directly. Use the AL_BEGIN_PROFILE_SECTION macro

Parameters
entrya unique tag for this code section.

The documentation for this class was generated from the following file: