class OperationTrackerFuchsia

Defined at line 76 of file ../../src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_fuchsia.h

Provides RAII-style tracking of filesystem operation latency and errors.

Attaches a child node to the given parent passed to the constructor with the following layout:

[operation_name]:

latency = [latency histogram of successful operations]

total = [running total of all operations]

ok = [running total of successful operations]

fail = [running total of failed operations]

errors: [created dynamically on first non-ok return of operation]

ZX_ERR_ACCESS_DENIED = 5, [child properties created when errors encountered]

Public Members

static const char[] kOkCountName
static const char[] kFailCountName
static const char[] kTotalCountName
static const char[] kLatencyHistogramName
static const char[] kErrorNodeName

Public Methods

void OperationTrackerFuchsia (inspect::Node & root_node, std::string_view operation_name, LatencyHistogramSettings histogram_settings)

Used to record latency/error metrics for an arbitrary filesystem operation.

Defined at line 17 of file ../../src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_fuchsia.cc