Skip to documentation
SLOP

tiny.bench.Phase

Reference tiny.bench Phase

Defined in tiny.bench.

Called byCallstiny.benchphaseAtprivate sourcelib.bench.src.instrumentationtracyNametiny.benchPhase
Static calls · unresolved targets: 0 · external targets: 8.

Source

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

zig
pub fn Phase(comptime name: []const u8) type {    return struct {        coz_scope: coz.Scope(name),        tracy_zone: tracy.Zone,        const Self = @This();        pub inline fn init(comptime src: SourceLocation) Self {            return .{                .coz_scope = coz.scope(name),                .tracy_zone = tracy.zoneAt(tracyName(name), src),            };        }        pub inline fn setName(self: Self, dynamic_name: []const u8) void {            self.tracy_zone.setName(dynamic_name);        }        pub inline fn setValue(self: Self, value: u64) void {            self.tracy_zone.setValue(value);        }        pub inline fn setText(self: Self, text: []const u8) void {            self.tracy_zone.setText(text);        }        pub inline fn end(self: Self) void {            self.coz_scope.end();            self.tracy_zone.end();        }    };}

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

zig
pub const Phase = instrumentation.Phase;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433