class MetricsImpl

Defined at line 16 of file ../../src/lib/metrics_buffer/metrics_impl.h

This class connects to the MetricsEventLoggerFactory and MetricsEventLogger fidl endpoints, and

will re-connect starting with the fuchsia.io.Directory if an error occurs. The failing call is

not retried.

Public Methods

void MetricsImpl (async_dispatcher_t * dispatcher, fidl::ClientEnd<fuchsia_io::Directory> directory, uint32_t project_id)

called on dispatcher thread

Defined at line 21 of file ../../src/lib/metrics_buffer/metrics_impl.cc

void ~MetricsImpl ()

This is called on the dispatcher thread, with guarantee that anything queued to the dispatcher

during LogMetricEvents will run before ~MetricsImpl.

Defined at line 23 of file ../../src/lib/metrics_buffer/metrics_impl.h

void LogMetricEvents (std::vector<fuchsia_metrics::MetricEvent> events)

This is called on an arbitrary thread which is not the dispatcher thread, with guarantee that

~MetricsImpl will be queued to the dispatcher after anything queued to the dispatcher by this

call.

Defined at line 25 of file ../../src/lib/metrics_buffer/metrics_impl.cc