tree: 1dd1926f0ff1ceeefd6100a83bad971aaca1d45d [path history] [tgz]
  1. lib/
  2. proto/
  3. sync/
  4. batch_event_storage.cc
  5. batch_event_storage.h
  6. batch_event_storage_test.cc
  7. BUILD.gn
  8. c_structured_metrics.cc
  9. c_structured_metrics.h
  10. codegen.py
  11. codegen_unittest.py
  12. event_base.cc
  13. event_base.h
  14. fake_recorder.cc
  15. fake_recorder.h
  16. gen_events.py
  17. gen_metrics_client_events.py
  18. key_data.cc
  19. key_data.h
  20. metrics_client_structured_events.h
  21. metrics_client_structured_metrics_test.cc
  22. mock_recorder.h
  23. OWNERS
  24. persistent_proto.cc
  25. persistent_proto.h
  26. README.md
  27. recorder.h
  28. recorder_impl.cc
  29. recorder_impl.h
  30. recorder_impl_test.cc
  31. recorder_singleton.cc
  32. recorder_singleton.h
  33. reset_counter_updater.cc
  34. templates.py
  35. templates_metrics_client.py
metrics/structured/README.md

Chromium OS Structured Metrics

The Chromium OS “libstructuredmetrics” package is a lightweight library for clients to record Structured metrics.

The events will be stored in a file and a browser Chromium process will read these files to be uploaded.

There is currently no way for events to be uploaded independent of Chromium.

Using Structured Metrics

TODO(jongahn): Write a How-to-use section.

Lib Directory

The lib directory is synced manually from Chromium directory //components/metrics/structured/lib. using a tool called Copybara.

The Copybara script that syncs this library is located in Google's internal repository. Please check //googleclient/chrome/crosdata/structured_metrics/libshare/README.md for more details.

Sync Directory

The sync directory is used to sync files to both Chromium and internal google repositories. This directory contains scripts and files for parsing and interpreting events declared in the file structured.xml.