Skip to content

Commit

Permalink
Added some documentation regarding the newly added macros. Fixed the ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
shripad621git committed Feb 9, 2024
1 parent 8e0bae7 commit 9744326
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracing/json/json_tracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions src/tracing/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <matter/tracing/macros_impl.h>
#include <tracing/log_declares.h>
#include <tracing/registry.h>
Expand Down

0 comments on commit 9744326

Please sign in to comment.