Skip to documentation
SLOP

alloc_observe.enabled

Reference alloc_observe enabled

Internal implementation documentation

Defined in alloc_observe.

A compile-time boolean indicating whether allocation observation is active.

No direct callersNo direct callsalloc_observeenabled
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433