Return a metric id for category and name, registering if needed.
Declared in <balm_metricregistry.h>
MetricId
getId(
char const* category,
char const* name);
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.
metric id for category and name
| Name | Description |
|---|---|
| category | null-terminated category name |
| name | null-terminated metric name |