Builds a report of the frames recorded by update: one row per zone, in the current
Report_Mode. The report lives in temporary storage, so print or save it before the next
reset_temporary_storage. Rows of zones that were never called, or never initted in manual
mode, are left out when printed.
#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);
report := create_report();
assert(report.records.count == 1);
assert(report.records[0].name == "work");
}Doesn't run in the browser (skipped on wasm).
create_report :: () -> *Report