From 9744326025f8f5c11df42366f7cfbb24252e8ebc Mon Sep 17 00:00:00 2001 From: shripad621git Date: Fri, 9 Feb 2024 15:03:56 +0530 Subject: [PATCH] Added some documentation regarding the newly added macros. Fixed the ci. --- src/tracing/json/json_tracing.cpp | 2 +- src/tracing/macros.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/tracing/json/json_tracing.cpp b/src/tracing/json/json_tracing.cpp index 0dfdba525fa021..a838e2e6dd2b14 100644 --- a/src/tracing/json/json_tracing.cpp +++ b/src/tracing/json/json_tracing.cpp @@ -299,7 +299,7 @@ void JsonBackend::TraceMetric(const char * label, long int val) { ::Json::Value value; value["label"] = label; - value["val"] = val; + value["label_value"] = val; // Output the metric diff --git a/src/tracing/macros.h b/src/tracing/macros.h index 18b80f685c4062..0643a466c2a77d 100644 --- a/src/tracing/macros.h +++ b/src/tracing/macros.h @@ -26,6 +26,14 @@ // MATTER_TRACE_END(label, group) // MATTER_TRACE_INSTANT(label, group) // MATTER_TRACE_SCOPE(label, group) + +// Tracing macro to trace monotonically increasing counter values. +// MATTER_TRACE_COUNTER(label) + +// Tracing macro to represent historical metric data i.e the data points which represent different +// values at different point of time. +// MATTER_TRACE_METRIC(label, value) + #include #include #include