Cobalt is a system for collecting metrics from Fuchsia devices, sending metric observations to servers running in the cloud, aggregating and analyzing the collected observations and generating useful reports and visualizations. Cobalt emphasizes the preservation of user privacy while collecting high-quality, useful analytics.
Fuchsia code uses Cobalt through its FIDL protocol. See //garnet/public/lib/cobalt/fidl/cobalt.fidl
.
The Cobalt test app cobalt_testapp.cc
serves as an example usage of the Cobalt FIDL service.
For example:
$ fx set x64 $ fx full-build
Start Fuchsia. For example:
$ fx emu -N
From within Fuchsia:
$ system/test/cobalt_testapp
or try
$ system/test/cobalt_testapp --verbose=3