class ThroughputTracker

Defined at line 221 of file ../../src/devices/usb/lib/usb-inspect/include/usb-inspect/usb-inspect.h

Periodically triggers a measurement callback at a fixed interval to calculate throughput.

Public Methods

void ThroughputTracker (async_dispatcher_t * dispatcher, MeasureCallback callback, zx::duration interval)

Defined at line 225 of file ../../src/devices/usb/lib/usb-inspect/include/usb-inspect/usb-inspect.h

void Start ()

Starts the periodic throughput timer.

Defined at line 232 of file ../../src/devices/usb/lib/usb-inspect/include/usb-inspect/usb-inspect.h

void Stop ()

Stops the periodic throughput timer.

Defined at line 238 of file ../../src/devices/usb/lib/usb-inspect/include/usb-inspect/usb-inspect.h

void MeasureForTesting (zx::duration delta)

Manually triggers the measurement callback with a fixed elapsed duration.

Defined at line 241 of file ../../src/devices/usb/lib/usb-inspect/include/usb-inspect/usb-inspect.h