A metric tree consisting of children groups and leaf metrics.
Size: 16 bytes / 128 bits on 32-bit platforms - next, name, metrics, children.
Public Member Functions | |
| Group (Token name) | |
| Group (Token name, GroupList &groups) | |
| Token | name () const |
| Group (Group const &)=delete | |
| void | operator= (const Group &)=delete |
| void | Add (UntypedMetric &metric) |
| void | Add (Group &group) |
| MetricList & | metrics () |
| GroupList & | children () |
| const MetricList & | metrics () const |
| const GroupList & | children () const |
| void | Dump () const |
Static Public Member Functions | |
| static void | Dump (const GroupList &groups, int indent_level=0) |
| void pw::metric::Group::Dump | ( | ) | const |
Recursively dump a metrics group or groups to pw_log. Level determines the indentation indent_level up to a maximum of 4. Produces output like:
Note the metric names are tokenized with base64. Decoding requires using the Pigweed detokenizer. With a detokenizing-enabled logger, you could get something like: