function · performance
stop_logging
Stops the active performance log when the calling package owns it.
performance.stop_logging() -> stopped
- Stable ID
performance.stop-logging- Owner
- app.ScriptPackageHost
- Authority
- host_lifecycle
- Timing
- immediate
- Availability
- Phase 14 package callbacks
- Side effects
- stops sampling while retaining detached log data
- Determinism
- Host-created package identity and per-callback budgets.
- Introduced
- 1.0.0
Usage
Stop the active performance log from the package that started it. Samples and summary data remain available until the next logging session starts.
Parameters
- None
Returns
True after the owned active log stops; invalid ownership or inactive logging raises a contained package error.
Cost
Constant-time logging-state transition with no simulation or rendering mutation.
Fields
This symbol has no fields.
Errors
- None
Examples
assert(performance.stop_logging())
API history
- 1.0.0: Package-controlled performance-log stop added during Phase 15 closure.