Iprof module

save_csv_report

procedureSource

Writes a report to filename as CSV: the command line, then name,self (ms),hier (ms),calls per zone. A name with a quote or a comma is quoted. A failed write logs an error.

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);
    save_csv_report(create_report(), "profile.csv");
}

This one is only checked to compile, not run.

save_csv_report :: (report: *Report, filename: string)

Parameters

report: *Report
filename: string

See also