Iprof module

log_text_report

procedureSource

Logs a report as text: a title line, a header, then one line per zone with its self time and hierarchical time in milliseconds, its call count and its heat. Rows below min_self_time or min_hier_time (milliseconds, 0 for all) are skipped.

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

main :: () {
    Prof_init_highlevel();
    zones[0].name = "work";
    zones[0].initted = true;
    zone_begin(0);
    zone_end();
    update(true);
    log_text_report(create_report());
}

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

log_text_report :: (report: *Report, min_self_time := 0., min_hier_time := 0.)

Parameters

report: *Report
min_self_time := 0.
min_hier_time := 0.

See also