Stack-only causal context on one thread; restores the previous scope on every exit. No global recorder is installed: lookups require the same explicitly supplied recorder. Must be destroyed in stack order on the constructing thread, before the recorder.
More...
#include <diagnostics.hpp>
Stack-only causal context on one thread; restores the previous scope on every exit. No global recorder is installed: lookups require the same explicitly supplied recorder. Must be destroyed in stack order on the constructing thread, before the recorder.
◆ DiagnosticScope()
| portals::DiagnosticScope::DiagnosticScope |
( |
Diagnostics * | diagnostics, |
|
|
DiagnosticContext | context ) |
|
noexcept |
Install a borrowed context without allocation.
- Parameters
-
| diagnostics | Recorder that outlives this scope; null/disabled is a no-op. |
| context | Token issued by that recorder, or empty for an unobserved continuation. |
◆ frameRequested()
| bool portals::DiagnosticScope::frameRequested |
( |
| ) |
const |
|
noexcept |
Inspect actual invalidation evidence in this scope.
- Returns
- True if a frame request was recorded by an instrumented tree.
◆ outcome()
Summarize only property evidence observed in this scope.
- Returns
- VALUE_CHANGED, VALUE_UNCHANGED, or OUTCOME_UNKNOWN; no inference from handler return.
The documentation for this class was generated from the following file: