• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This component contains the base classes for the metrics service and only
2depends on //base. It is used by ChromeOS as the base for a standalone service
3that will upload the metrics when ChromeOS is not installed (headless install).
4
5This is the first step towards the componentization of metrics that will happen
6later this spring.
7
8A proposed structure for the metrics component is:
9//components/metrics/base,
10  Depends on base only. Contains the protobuf definitions.
11//components/metrics/core
12  Depends on everything iOS depends on
13//components/metrics/content
14  Depends on content
15
16Ideally, the component would abstract the network stack and have a clean
17separation between the metrics upload logic (protbuf generation, retry, etc...),
18the chrome part (gathering histogram from all the threads, populating the
19log with hardware characteristics, plugin state, etc.).
20
21It is a plus if the code currently in the component (i.e., the code that can
22depend only on //base) stays in a single directory as it would be easier
23for ChromeOS to pull it :).
24