class Metrics

Defined at line 78 of file ../../src/devices/block/drivers//ftl/metrics.h

Encapsulates all existing metrics, and the property list names for each.

Public Members

static const int kReasonCount

Public Methods

std::string GetMaxWearPropertyName ()

Each of this functions returns the name of the property for a count or rate for the given pair.

Unknown combinations will return an empty string.

Defined at line 84 of file ../../src/devices/block/drivers//ftl/metrics.h

template <typename InspectMetricType>
std::vector<std::string> GetPropertyNames ()

Returns the list of expected properties in the hierarchy for each inspect metric type.

inspect::UintProperty & max_wear ()

Defined at line 92 of file ../../src/devices/block/drivers//ftl/metrics.h

inspect::UintProperty & initial_bad_blocks ()

Defined at line 94 of file ../../src/devices/block/drivers//ftl/metrics.h

inspect::UintProperty & running_bad_blocks ()

Defined at line 95 of file ../../src/devices/block/drivers//ftl/metrics.h

inspect::UintProperty & total_bad_blocks ()

Defined at line 96 of file ../../src/devices/block/drivers//ftl/metrics.h

inspect::UintProperty & worn_blocks_detected ()

Defined at line 97 of file ../../src/devices/block/drivers//ftl/metrics.h

inspect::UintProperty & projected_bad_blocks ()

Defined at line 98 of file ../../src/devices/block/drivers//ftl/metrics.h

BlockOperationProperties & read ()

Defined at line 100 of file ../../src/devices/block/drivers//ftl/metrics.h

BlockOperationProperties & write ()

Defined at line 101 of file ../../src/devices/block/drivers//ftl/metrics.h

BlockOperationProperties & trim ()

Defined at line 102 of file ../../src/devices/block/drivers//ftl/metrics.h

BlockOperationProperties & flush ()

Defined at line 103 of file ../../src/devices/block/drivers//ftl/metrics.h

zx::vmo DuplicateInspectVmo ()

Defined at line 105 of file ../../src/devices/block/drivers//ftl/metrics.h

inspect::UintProperty & map_block_end_page_failure_reason (int reason)

Defined at line 107 of file ../../src/devices/block/drivers//ftl/metrics.h

template <>
std::vector<std::string> GetPropertyNames<inspect::internal::NumericProperty<unsigned long>> ()

Defined at line 111 of file ../../src/devices/block/drivers/ftl/metrics.cc

template <>
std::vector<std::string> GetPropertyNames<inspect::internal::NumericProperty<double>> ()

Defined at line 131 of file ../../src/devices/block/drivers/ftl/metrics.cc

void Metrics ()

Defined at line 142 of file ../../src/devices/block/drivers/ftl/metrics.cc