|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Optional synchronous measurement sink; disabled by default. The borrowed observer must outlive run or active session cleanup. It must not perform I/O, mutate/reenter the application, or retain borrowed state. It may collect bounded samples. Exceptions fail run explicitly. More...
#include <application.hpp>
Public Types | |
| using | Callback = void (*)(void *context, ApplicationPhase phase, std::chrono::nanoseconds elapsed) |
| Receive one completed phase duration; called outside tree frames. | |
Public Attributes | |
| Callback | callback {} |
| Null disables measurements and their clock reads. | |
| void * | context {} |
| Borrowed synchronous callback state. | |
Optional synchronous measurement sink; disabled by default. The borrowed observer must outlive run or active session cleanup. It must not perform I/O, mutate/reenter the application, or retain borrowed state. It may collect bounded samples. Exceptions fail run explicitly.
| using portals::ApplicationObserver::Callback = void (*)(void *context, ApplicationPhase phase, std::chrono::nanoseconds elapsed) |
Receive one completed phase duration; called outside tree frames.
| context | Borrowed observer state. |
| phase | Completed measured operation. |
| elapsed | Wall duration measured with steady_clock, independent of an injected logical clock. CONTROL_LATENCY instead reports the logical queue delay of this runner's input/resize channel only. |