Skip to documentation
SLOP

tiny.alloc.writePhaseReport

Reference tiny.alloc writePhaseReport

Defined in tiny.alloc.

Called byCallstest sourcelib.alloc.src.boundarytest: phase report is silent when the...tiny.allocprocessAllocatorPhaseViolationSitestiny.allocprocessAllocatorPhaseViolationstiny.allocwritePhaseReport
Static calls · unresolved targets: 1 · external targets: 3.

Source

Source: lib/alloc/src/boundary.zig:37

zig
pub fn writePhaseReport(writer: *std.Io.Writer, tool: []const u8, was_sealed: bool) !bool {    const violations = process.violations() orelse return false;    try writer.print(        "{s} allocator phase steady violations: sealed={} total={d} alloc={d} " ++            "resize={d} remap={d} free={d}",        .{            tool,            was_sealed,            violations.total(),            violations.allocations,            violations.resizes,            violations.remaps,            violations.frees,        },    );    if (process.violationSites()) |sites| {        for (sites.slice()) |address| try writer.print(" site=0x{x}", .{address});    }    try writer.writeByte('\n');    return true;}

Source: lib/alloc/src/root.zig:72

zig
pub const writePhaseReport = boundary.writePhaseReport;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433