class ThreadRuntimeStats
Defined at line 72 of file ../../zircon/kernel/include/kernel/task_runtime_stats.h
Manages sequence locked updates and access to per-thread runtime stats.
Public Members
static LockOption IrqSave
static LockOption NoIrqSave
Public Methods
void ThreadRuntimeStats ()
Defined at line 87 of file ../../zircon/kernel/include/kernel/task_runtime_stats.h
template <typename ExclusiveOption>
void Update (thread_state new_state, LockOption<ExclusiveOption> )
Updates the ThreadStats state with the given deltas and last thread state.
Defined at line 95 of file ../../zircon/kernel/include/kernel/task_runtime_stats.h
void AddPageFaultTicks (zx_duration_mono_ticks_t delta)
Updates the page fault / lock contention ticks with the given deltas. These values do not
require relative coherence with other state.
Defined at line 146 of file ../../zircon/kernel/include/kernel/task_runtime_stats.h
void AddLockContentionTicks (zx_duration_mono_ticks_t delta)
Defined at line 147 of file ../../zircon/kernel/include/kernel/task_runtime_stats.h
TaskRuntimeStats GetCompensatedTaskRuntimeStats ()
Returns the instantaneous runtime stats for the thread, including the time
the thread has spent in its current state (if that state is either READY or
RUNNING).
Defined at line 154 of file ../../zircon/kernel/include/kernel/task_runtime_stats.h
Records
Friends
class TaskRuntimeStatsTests