Skip to documentation
SLOP

tiny.bench.writePerfCounterResult

Reference tiny.bench writePerfCounterResult

Defined in tiny.bench.

Called byCallsNo direct callstest sourcelib.bench.src.instrumentationtest: perf counter result writer reco...test sourcelib.bench.src.instrumentationtest: perf counter result writer with...private sourcelib.bench.src.instrumentationwritePerfCounterResultFiletiny.benchwritePerfCounterResult
Static calls · unresolved targets: 0 · external targets: 5.

Source

Source: lib/bench/src/instrumentation.zig:375

zig
pub fn writePerfCounterResult(object: pretty_json.Object, result: sys.perf.CountResult) !void {    try object.field("protocol", "bench.perf-counter/v1");    try object.field("value", result.value);    try object.field("scaled_value", result.scaledValue());    try object.field("time_enabled", result.time_enabled);    try object.field("time_running", result.time_running);    try object.field("running_coverage", result.runningCoverage().text());    try object.field("running_ratio", result.runningRatio());    try object.field("id", result.id);    try object.field("lost", result.lost);    try object.end();}

Source: lib/bench/src/root.zig:54

zig
pub const writePerfCounterResult = instrumentation.writePerfCounterResult;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433