fuchsia.storage.metrics

STRUCTS

CallStatRaw

Defined in fuchsia.storage.metrics/storage-metrics.fidl

Stats for calls. These stats track completed calls - they may or may not have succeeded. Unless specified otherwise , time units are in nanoseconds and data transferred is in bytes

NameTypeDescriptionDefault
minimum_latency uint64

Minimum time taken by a request to be served.

No default
maximum_latency uint64

Maximum time taken by a request to be served.

No default
total_time_spent uint64

Total time spent to serve requests.

No default
total_calls uint64

Total number of calls.

No default
bytes_transferred uint64

byte_transferred may mean different things in different context. For example, read and write may use it for bytes read/written, whereas create/lseek may use bytes_transferred for file name length or number of bytes lseek-ed from current position. bytes_transferred has special meaning if the succeeded or failed. On success: Partitally succeeded calls, bytes fetched is less than bytes requested, can be considered as successful. To keep latency and time_spent numbers accurate, on success, bytes transferred is number bytes returned to caller. It is NOT the number of bytes fetched from underlying subsystem and it is NOT number of bytes requested by the caller. On failure: On failure, bytes_transferred is the number of bytes requested by the caller.

No default

CallStat

Defined in fuchsia.storage.metrics/storage-metrics.fidl

NameTypeDescriptionDefault
success CallStatRaw

CallStat keeps track of the successful commands and failed commands seperately as successful commands may generate completely different stats than failed commands - a write() to read-only file handle may fail in nanoseconds and if the stats tracked together, it will skew the numbers.

No default
failure CallStatRaw No default

FsMetrics

Defined in fuchsia.storage.metrics/storage-metrics.fidl

NameTypeDescriptionDefault
create CallStat

Call stats for create

No default
read CallStat

Call stats for read

No default
write CallStat

Call stats for write

No default
truncate CallStat

Call stats for truncate

No default
unlink CallStat

Call stats for unlink

No default
rename CallStat

Call stats for rename

No default
lookup CallStat

Call stats for directory lookups

No default
open CallStat

Call stats for open. This may or may not include directory lookup during open

No default