class StallAggregatorTests

Defined at line 71 of file ../../zircon/kernel/lib/stall/tests/stall_test.cc

Public Methods

bool MultiCpuMergeTest ()

Verifies that the aggregated stats are the average of per-CPU stats, weighted by `active` time.

Defined at line 74 of file ../../zircon/kernel/lib/stall/tests/stall_test.cc

bool TimersDoNotRestartTest ()

Verifies that global stats keep increasing by simulating a system with one CPU, and verifying

that the global stats correspond to the running total of values it reports.

Defined at line 101 of file ../../zircon/kernel/lib/stall/tests/stall_test.cc

bool IdleSystemTest ()

Verifies that, if the overall `active` time of all CPUs is zero (i.e. if the denominator of the

weighted average is zero), the resulting stall timers are simply left unchanged.

Defined at line 133 of file ../../zircon/kernel/lib/stall/tests/stall_test.cc

template <ObserverThresholdTestSelector test_variant>
bool ObserverThresholdTest ()

Verifies that the StallObserver receives data from the StallAggregator and that it applies the

threshold correctly. Depending on the template argument, this test will exercise either the

"some" or "full" counter.

Defined at line 175 of file ../../zircon/kernel/lib/stall/tests/stall_test.cc

bool ObserversManyTest ()

Verifies that all registered observers receive the updates.

Defined at line 248 of file ../../zircon/kernel/lib/stall/tests/stall_test.cc

Enumerations

enum ObserverThresholdTestSelector
Name Value
Some 0
Full 1

Defined at line 169 of file ../../zircon/kernel/lib/stall/tests/stall_test.cc

Records