tiny.alloc.writePhaseReport
Defined in tiny.alloc.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |