tree: 03678d7f26d0a2908ccd43a5753f3726e2ab8355 [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. registry.cc
  4. registry.h
  5. registry_test.cc
  6. resource_collector.cc
  7. resource_collector.h
  8. resource_collector_mock.cc
  9. resource_collector_mock.h
  10. resource_collector_test.cc
missive/analytics/README.md

Analytics

This directory contains implementation of internal analytics of Missive via UMA.

To add a new analytics resource:

  1. Create a new class ResourceCollectorMyResource that inherits ResourceCollector.

  2. Implement ResourceCollectorMyResource::Collect according to the document.

  3. Register it to the registry in the MissiveDaemon constructor by calling

    analytics_registry_.Add("MyResource", std::make_unique<ResourceCollectorMyResource>(base::Minutes(10)))
    

    Feel free to replace base::Minutes(10) above with any reasonable time interval.