From 2ffa861b8a989a119f1f2d7fc4b127a9ad731c54 Mon Sep 17 00:00:00 2001 From: shripad621git Date: Wed, 13 Sep 2023 11:28:24 +0530 Subject: [PATCH] Adding filtering support to insights traces. 1.Provides add and remove apis to add or remove the traces as per requirement. 2.Filters the required traces and reports it to esp-insights. --- src/tracing/esp32_trace/BUILD.gn | 1 + src/tracing/esp32_trace/include/matter/tracing/macros_impl.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tracing/esp32_trace/BUILD.gn b/src/tracing/esp32_trace/BUILD.gn index cb41004a74289b..bd341ed1e7b7b7 100644 --- a/src/tracing/esp32_trace/BUILD.gn +++ b/src/tracing/esp32_trace/BUILD.gn @@ -35,4 +35,5 @@ source_set("esp32_trace_tracing") { public = [ "include/matter/tracing/macros_impl.h" ] public_configs = [ ":tracing" ] deps = [ ":backend" ] + } diff --git a/src/tracing/esp32_trace/include/matter/tracing/macros_impl.h b/src/tracing/esp32_trace/include/matter/tracing/macros_impl.h index 4d8a8a2a214525..f5217d1d54515a 100644 --- a/src/tracing/esp32_trace/include/matter/tracing/macros_impl.h +++ b/src/tracing/esp32_trace/include/matter/tracing/macros_impl.h @@ -37,11 +37,11 @@ class Scoped public: inline Scoped(const char * label, const char * group) : mLabel(label), mGroup(group) { MATTER_TRACE_BEGIN(label, group); } inline ~Scoped() { MATTER_TRACE_END(mLabel, mGroup); } - private: const char * mLabel; const char * mGroup; }; + } // namespace Insights } // namespace Tracing } // namespace chip