History log of /fuchsia/zircon/system/ulib/cobalt-client/event_buffer.cpp
Revision Date Author Comments
# c0740283 12-Sep-2018 Gianfranco Valentino <gevalentino@gevalentino.mtv.corp.google.com>

[cobalt-client]: Add Collector.

Collector is the peer class in charge of collecting the
recorded data. This class uses a Logger to persist the data.

A CobaltLogger will be provided, and will be the default
for anyone instantiating the collector, through a factory
method. This abstractions simply lets us inject testing
loggers to verify what is persisted.

We require that the number of Histograms and counters
be defined upfront, to improve locality.

TEST=cobalt-client-tests

Change-Id: I78154a83e33df94e696e4cf3a24c90276ed4f01a


# 423c26b2 29-Aug-2018 Gianfranco Valentino <gevalentino@gevalentino.mtv.corp.google.com>

[cobalt-client]: Update for cobalt2.fidl.

Update internal data to use a representation compatible with
cobalt2.fidl. This is, no ObservationPart or Value, and dimensions
are represented as a pair of ints, depicting an event type and
an index within the given event type.

Until multiple dimensions are supported, we can assume one index being
passed.

TESTS=cobalt-client-tests

Change-Id: Ia4afb4015c38aeeda4152a043c8997e89f4d6efe