CToolPerf

Overview

Per-method performance measurement. Tracks call count and average duration. Controlled by UCSettings properties: timer, minTimerToDisplay, allTimerToDisplay, minStatToConsider.

Functions

Name Description
perfStart Start timing a method.
perfNext Mark an intermediate checkpoint. Logs if duration exceeds minTimerToDisplay.
perfEnd End timing. Logs if duration exceeds minTimerToDisplay. Periodically dumps all averages.

Macros

Name Description
CDRYX_PERF_START Calls perfStart(this, FUNCTION).
CDRYX_PERF_NEXT Calls perfNext(this, FUNCTION, Info).
CDRYX_PERF_END Calls perfEnd(this, FUNCTION, Info).
void UMyClass::HeavyMethod() {
    CDRYX_PERF_START()
    // ... step 1 ...
    CDRYX_PERF_NEXT("step1 done")
    // ... step 2 ...
    CDRYX_PERF_END("complete")
}