pub fn set_deep_profiling_permitted(permitted: bool)Available on crate feature
debug-control only.Expand description
Permit or forbid deep profiling for this process.
This is the owner’s toggle and it starts no collection: sampling runs only
while a consumer holds a guard from begin_deep_profiling. Withdrawing
permission stops a live capture and releases what it collected, because a
capability that is off should retain nothing.
The concrete collectors live in the shell and script crates, so this is the
lowest shared layer that can coordinate them without making blitz-traits
depend on its consumers. Reapplying the current state is a no-op, so a
settings refresh cannot split an active capture.