Iprof module

zone_end

procedureSource

Closes the zone most recently opened with zone_begin. Calling it with no zone open fails an assert.

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

main :: () {
    zones[0].name = "outer";
    zones[0].initted = true;
    zones[1].name = "inner";
    zones[1].initted = true;

    zone_begin(0);
    zone_begin(1);
    zone_end();  // closes "inner"
    zone_end();  // closes "outer"
}

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

zone_end :: ()

See also