class Metrics

Defined at line 24 of file ../../src/developer/memory/monitor/metrics.h

Public Members

static const char *const kInspectPlatformNodeName
static const char *const kMemoryNodeName
static const char *const kReadingMemoryTimestamp
static const char *const kMemoryBandwidthNodeName
static const char *const kReadings
static const size_t kMemoryBandwidthArraySize

Public Methods

void Metrics (const std::vector<memory::BucketMatch> & bucket_matches, zx::duration poll_frequency, async_dispatcher_t * dispatcher, inspect::ComponentInspector * inspector, fidl::Client<fuchsia_metrics::MetricEventLogger> logger, CaptureCb capture_cb, DigestCb digest_cb)

Metrics polls the memory state periodically asynchroniously using the passed dispatcher and sends

information about the memory Digests to Cobalt, in the form of several Events.

Defined at line 39 of file ../../src/developer/memory/monitor/metrics.cc

void NextMemoryBandwidthReading (uint64_t reading, zx_instant_boot_t ts)

Allow monitor to update the memory bandwidth readings

once a second to metrics

Defined at line 212 of file ../../src/developer/memory/monitor/metrics.cc