struct DroppedRecordStats

Defined at line 36 of file ../../zircon/kernel/lib/percpu_writer/include/lib/percpu_writer/buffer.h

LINT.IfChange(DroppedRecordStats)

This struct keeps track of the duration, number, and size of trace records dropped when the

buffer is full. These statistics are emitted to the trace buffer as a duration as soon as

space is available to do so, at which point the values are reset to 0, or false in the case

of has_dropped.

Public Members

zx_instant_boot_ticks_t first_dropped
zx_instant_boot_ticks_t last_dropped
uint32_t num_dropped
uint32_t bytes_dropped
bool has_dropped

Public Methods

void Reset ()

Defined at line 46 of file ../../zircon/kernel/lib/percpu_writer/include/lib/percpu_writer/buffer.h

void Track (zx_instant_boot_ticks_t now, uint32_t size)

Defined at line 54 of file ../../zircon/kernel/lib/percpu_writer/include/lib/percpu_writer/buffer.h

bool HasDropped ()

Defined at line 64 of file ../../zircon/kernel/lib/percpu_writer/include/lib/percpu_writer/buffer.h