class Diagnostics

Defined at line 22 of file ../../src/storage/fvm/driver/diagnostics.h

Diagnostics exposes internal information and metrics recorded by FVM to the rest of the system

via the Inspect API.

This object owns a VMO which it publishes metrics into; this VMO is read by the inspect

framework and can be accessed through (e.g.) iquery.

This class is thread-safe and movable.

Public Methods

void Diagnostics ()

Defined at line 14 of file ../../src/storage/fvm/driver/diagnostics.cc

void ~Diagnostics ()

Defined at line 25 of file ../../src/storage/fvm/driver/diagnostics.h

void Diagnostics (Diagnostics && o)

Defined at line 26 of file ../../src/storage/fvm/driver/diagnostics.h

Diagnostics & operator= (Diagnostics && o)

Defined at line 27 of file ../../src/storage/fvm/driver/diagnostics.h

void Diagnostics (const Diagnostics & o)

Defined at line 28 of file ../../src/storage/fvm/driver/diagnostics.h

Diagnostics & operator= (const Diagnostics & o)

Defined at line 29 of file ../../src/storage/fvm/driver/diagnostics.h

void OnMount (OnMountArgs args)

Reports the initial state of the FVM instance. Should be called once on mount.

Defined at line 35 of file ../../src/storage/fvm/driver/diagnostics.cc

void UpdatePartitionMetrics (const std::string & partition_name, size_t num_slices)

Reports the metrics stored for a partition.

Defined at line 56 of file ../../src/storage/fvm/driver/diagnostics.cc

void UpdateMaxBytes (const std::string & partition_name, size_t max_bytes)

Update the partition's size limit metric.

Defined at line 65 of file ../../src/storage/fvm/driver/diagnostics.cc

zx::vmo DuplicateVmo ()

Returns a read-only duplicate of the VMO this object writes to. Suitable for giving out to an

external process which would like to subscribe to FVM's diagnostics.

Defined at line 69 of file ../../src/storage/fvm/driver/diagnostics.h

Records