Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

Trace

This API helps you track where a value originated and where it was mutated, or any other points of interest. In debug mode, it adds a small size penalty (104 bytes on 64-bit architectures) to the aggregate that you add it to. In release mode, it is size 0 and all methods are no-ops. This is a pre-made type with default settings. For more advanced usage, see ConfigurableTrace.

debug.Trace
pub const Trace = ConfigurableTrace(2, 4, builtin.mode == .debug)

File

lib/std/debug.zig:1762

Code

pub const Trace = ConfigurableTrace(2, 4, builtin.mode == .debug)