class Counter

Defined at line 132 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

Public Methods

void Counter (const counters::Descriptor * desc)

Defined at line 134 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

int64_t SumAcrossAllCpus ()

Return the sum of the per-cpu slots for this counter.

Defined at line 137 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

int64_t MaxAcrossAllCpus ()

Return the max of the per-cpu slots for this counter.

Defined at line 147 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

int64_t MinAcrossAllCpus ()

Return the min of the per-cpu slots for this counter.

Defined at line 157 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

int64_t ValueCurrCpu ()

Return the value of the calling cpu's slot for this counter.

Defined at line 167 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

void Set (uint64_t value)

Set the value of calling cpu's slot to |value|. No memory order is implied.

Defined at line 173 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

void Add (int64_t delta)

Defined at line 178 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

void Max (int64_t value)

Defined at line 183 of file ../../zircon/kernel/lib/counters/include/lib/counters.h

void Min (int64_t value)

Note: Since counters are defined in zero-initialized storage, a min counter

must be set to the maximum value using Set() at some time during boot.

Defined at line 193 of file ../../zircon/kernel/lib/counters/include/lib/counters.h