alloc_observe.enabled
Internal implementation documentation
Defined in alloc_observe.
A compile-time boolean indicating whether allocation observation is active.
Source
Source: lib/alloc/observe/src/protocol.zig:13
zig
/// A compile-time boolean indicating whether allocation observation is active./// Build options determine this setting: standalone builds default to `false`/// unless configured with `-Denabled=true`, while monorepo consumers typically/// forward `-Dobserve-allocations=true` through build scripts. When this flag/// is `false`, installation succeeds inertly, identifier queries return zero,/// suppression checks return `false`, and operations such as span tracking or/// suppression perform no work. Public data structures and types differ in/// concrete field layout between enabled and disabled builds, so they offer no/// layout equivalence guarantee across build configurations.pub const enabled: bool = build_options.allocation_observation_enabled;Source: lib/alloc/observe/src/root.zig:307
zig
/// A compile-time boolean indicating whether allocation observation is active./// Build options determine this setting: standalone builds default to `false`/// unless configured with `-Denabled=true`, while monorepo consumers typically/// forward `-Dobserve-allocations=true` through build scripts. When this flag/// is `false`, installation succeeds inertly, identifier queries return zero,/// suppression checks return `false`, and operations such as span tracking or/// suppression perform no work. Public data structures and types differ in/// concrete field layout between enabled and disabled builds, so they offer no/// layout equivalence guarantee across build configurations.pub const enabled = protocol.enabled;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |