Iprof module

zone_begin

procedureSource

Opens the zone in slot zone_index of zones (manual mode). Close it with zone_end(). The slot needs a name and initted = true first. Time until the matching zone_end counts toward the zone, and toward its parent for the hierarchical time.

Example
#import "Iprof"(IMPORT_MODE = .CLIENT, MANUAL_MODE = true, USE_GRAPHICS = false, DO_HISTORY = false);

main :: () {
    zones[0].name = "work";
    zones[0].initted = true;
    zone_begin(0);
    // ... the code to time ...
    zone_end();
}

Doesn't run in the browser (skipped on wasm).

zone_begin :: (zone_index: s64)

Parameters

zone_index: s64

See also