Return a metric id for category and name, registering if needed.
Synopsis
Declared in <balm_metricregistry.h>
MetricId
getId(
char const* category,
char const* name);
Description
Return a balm::MetricId object for the metric identified by the specified category and name. If no corresponding metric has already been registered, register a new metric and return a balm::MetricId object identifying that newly‐registered metric. The behavior is undefined unless category and name are null‐terminated. Note that this operation is guaranteed to return a valid balm::MetricId object.
Return Value
metric id for category and name
Parameters
Name |
Description |
category |
null‐terminated category name |
name |
null‐terminated metric name |
Created with MrDocs