File tree 3 files changed +13
-4
lines changed
config/esp32/components/chip
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -966,6 +966,16 @@ menu "CHIP Device Layer"
966
966
default n
967
967
help
968
968
This option enables the system statistics to be sent to the insights cloud.
969
+
970
+ config MAX_PERMIT_LIST_SIZE
971
+ int "Set permit list size for Insights traces"
972
+ range 5 30
973
+ depends on ESP_INSIGHTS_ENABLED
974
+ default 20
975
+ help
976
+ Maximum number of group entries that can be included in the permit list for reporting
977
+ the traces to insights.
978
+
969
979
endmenu
970
980
971
981
Original file line number Diff line number Diff line change 24
24
25
25
namespace Insights {
26
26
27
- /*
28
- *
27
+ /* *
29
28
* This class is used to monotonically increment the counters as per the label of the counter macro
30
29
* 'MATTER_TRACE_COUNTER(label)' and report the metrics to esp-insights.
31
30
* As per the label of the counter macro, it adds the counter in the linked list with the name label if not
@@ -37,7 +36,7 @@ class ESPInsightsCounter
37
36
{
38
37
private:
39
38
static ESPInsightsCounter * mHead ; // head of the counter list
40
- const char * label; // unique key
39
+ const char * label; // unique key ,it is used as a static string.
41
40
int instanceCount;
42
41
ESPInsightsCounter * mNext ; // pointer to point to the next entry in the list
43
42
bool registered = false ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ namespace Tracing {
32
32
namespace Insights {
33
33
namespace {
34
34
35
- constexpr size_t kPermitListMaxSize = 20 ;
35
+ constexpr size_t kPermitListMaxSize = CONFIG_MAX_PERMIT_LIST_SIZE ;
36
36
using HashValue = uint32_t ;
37
37
38
38
// Implements a murmurhash with 0 seed.
You can’t perform that action at this time.
0 commit comments