ark::perf::TracerReport
Defined in header “ark/perf/tracer_report.hh”.
This class can aggragate all of the individual scope timings and produce a report for you this can produce either a flat text table showing min/max/averages, or it can output a chrome-style JSON report.
Methods
-
TracerReport()
-
TracerReport(TracerReportConfig config)
Initialize a report with the given configuration. -
void add_scope_packs(const TraceTimingModel & timing_model, const std::vector< TraceTimingPackPtr > & packs)
Adds in additional scope packs to this report. This will walk through them and update reporting details as necessary. -
void add_scope_packs(const TraceTimingReport & report)
Adds in additional scope packs to this report, coming from a serialized source. -
std::string summary_report()
Returns a string report that is suitable for printing, summarizing all of the scope timings. -
std::string tracing_json_report()
Returns a JSON report, suitable for use with the Chrome tracing extension, to debug timing. -
std::map< std::string, TraceTimingSummary > summarize()
Returns a summary report, in an STL structure.