mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-21 06:12:09 +00:00
2182c6688c
This adds PW_METRIC_STATIC and PW_METRIC_GROUP_STATIC, which do the same as their non-_STATIC siblings, except that the object that they create gets a `static` storage. This can be useful, e.g. to have metrics inside of functions, when the function itself is to be instrumented. This CL also removes an extraneous stringification in the metric and group names, which resulted in double double quotes. Ah, and I also implemented PW_METRIC_GROUP with 3 parameters, which was referenced in the documentation but not formally implemented. Change-Id: Ife06f3759c49cb5cc15a571334e65b8f48051a6c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/16980 Commit-Queue: Paul Mathieu <paulmathieu@google.com> Reviewed-by: Keir Mierle <keir@google.com> |
||
---|---|---|
.. | ||
public/pw_metric | ||
pw_metric_proto | ||
size_report | ||
BUILD | ||
BUILD.gn | ||
docs.rst | ||
global_test.cc | ||
global.cc | ||
metric_service_nanopb_test.cc | ||
metric_service_nanopb.cc | ||
metric_test.cc | ||
metric.cc |