![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
Macros | |
#define | LOG(...) printf(__VA_ARGS__) |
#define | LOGe(...) fprintf(stderr, __VA_ARGS__) |
Functions | |
void | profileClear (void) |
Reset profiling. More... | |
void | profileSet (int n) |
Set profiling initial time and timing bucket, or add elapsed time to a bucket. More... | |
void | profilePrint (void) |
Print all profiling buckets. More... | |
Variables | |
long | profTable [MAX_PROF_NUM] |
int | profCount [MAX_PROF_NUM] |
#define LOG | ( | ... | ) | printf(__VA_ARGS__) |
#define LOGe | ( | ... | ) | fprintf(stderr, __VA_ARGS__) |
void profileClear | ( | void | ) |
Reset profiling.
The profiling facility provides a single profile per process. There are up to MAX_PROF_NUM timing buckets available, numbered 0 to MAX_PROF_NUM-1. Call this function before the first call to profileSet to have the first call to profileSet function set the initial time and timing bucket.
void profilePrint | ( | void | ) |
Print all profiling buckets.
Prints all non-zero timing buckets and the percentage time occupied and total time.
void profileSet | ( | int | n | ) |
Set profiling initial time and timing bucket, or add elapsed time to a bucket.
This function sets a profiling timing point and selects the timing bucket. If being called for the first time, or the first time since profileClear was called, it sets the initial time, and subsequent calls will log time into the timing bucket n. On subsequent calls, the elapsed time since the last call will be added to the previously set timing bucket, and will again set the timing bucket.
n | The timing bucket to add to on the next call. |
int profCount[MAX_PROF_NUM] |
long profTable[MAX_PROF_NUM] |