Coherent, allocation-free value for one worker execution. More...
#include <StormByte/multimedia/pipeline/activity.hxx>
Public Member Functions | |
| std::chrono::nanoseconds | Elapsed () const noexcept |
| Observed lifetime of this execution, frozen on termination. | |
| bool | operator== (const WorkerActivitySnapshot &other) const noexcept=default |
| Compare complete samples, including identities and reference ticks. | |
Public Attributes | |
| std::uint64_t | Id = 0 |
| Process-unique worker identity. | |
| std::uint64_t | Generation = 0 |
| Increments on each new execution. | |
| ActivityRole | Role = ActivityRole::Main |
| Execution domain. | |
| int | Track = -1 |
| Source track for a demux feeder; -1 for the main worker. | |
| bool | Available = false |
| False until this execution starts. | |
| ActivityState | State = ActivityState::Unknown |
| State at SampledAt. | |
| std::chrono::nanoseconds | StartedAt {} |
| Beginning of this generation. | |
| std::chrono::nanoseconds | SampledAt {} |
| Coherent reference tick, frozen at termination. | |
| std::chrono::nanoseconds | FinishedAt {} |
| Termination tick; zero while live. | |
| std::chrono::nanoseconds | Unknown {} |
| Unclassified wall time. | |
| std::chrono::nanoseconds | Preparing {} |
| Setup wall time. | |
| std::chrono::nanoseconds | Processing {} |
| Process wall time minus instrumented waits. | |
| std::chrono::nanoseconds | WaitingInput {} |
| Upstream waits. | |
| std::chrono::nanoseconds | WaitingOutput {} |
| Local downstream waits. | |
| std::chrono::nanoseconds | WaitingBudget {} |
| Aggregate budget waits. | |
| std::chrono::nanoseconds | Paused {} |
| Cooperative pause waits. | |
Coherent, allocation-free value for one worker execution.
Steady-clock references are process-local nanoseconds, not UTC. SampledAt includes the currently open interval; after termination it equals FinishedAt and the entire value is immutable until another Start. The seven durations sum exactly to Elapsed(), including unclassified time. Compare only samples with the same topology Run, stage Id, worker Id and Generation. Workers are independent: never sum their percentages as one exclusive stage state.
|
inlinenoexcept |
Observed lifetime of this execution, frozen on termination.
|
defaultnoexcept |
Compare complete samples, including identities and reference ticks.
| other | Sample to compare. |
| bool StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Available = false |
False until this execution starts.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::FinishedAt {} |
Termination tick; zero while live.
| std::uint64_t StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Generation = 0 |
Increments on each new execution.
| std::uint64_t StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Id = 0 |
Process-unique worker identity.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Paused {} |
Cooperative pause waits.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Preparing {} |
Setup wall time.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Processing {} |
Process wall time minus instrumented waits.
| ActivityRole StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Role = ActivityRole::Main |
Execution domain.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::SampledAt {} |
Coherent reference tick, frozen at termination.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::StartedAt {} |
Beginning of this generation.
| ActivityState StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::State = ActivityState::Unknown |
State at SampledAt.
| int StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Track = -1 |
Source track for a demux feeder; -1 for the main worker.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::Unknown {} |
Unclassified wall time.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::WaitingBudget {} |
Aggregate budget waits.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::WaitingInput {} |
Upstream waits.
| std::chrono::nanoseconds StormByte::Multimedia::Pipeline::WorkerActivitySnapshot::WaitingOutput {} |
Local downstream waits.