Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/matter/matter.slce.extra
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ extra_files:
- slc/component/matter-core-sdk/libsystemlayer.slcc
- slc/component/matter-core-sdk/efr32_icd_subscription_callback.slcc
- slc/component/matter-core-sdk/tracing.slcc
- slc/component/matter-core-sdk/energy_tracing.slcc
- slc/component/matter-core-sdk/responders.slcc
- slc/component/matter-core-sdk/efr32.slcc
- slc/component/matter-core-sdk/configuration_data.slcc
Expand Down
34 changes: 34 additions & 0 deletions slc/component/matter-core-sdk/energy_tracing.slcc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
id: energy_tracing
package: matter
label: energy_tracing
description: >
Enables tracing of energy states
category: Matter|Core
quality: production
metadata:
sbom:
license: MSLA

provides:
- name: energy_tracing

include:
- path: third_party/matter_sdk/examples/platform/silabs
- path: third_party/matter_sdk/src
- path: third_party/matter_sdk/src/include
- path: third_party/matter_sdk/src/lib
- path: third_party/nlassert/include
- path: third_party/nlio/include
- path: third_party/matter_sdk/src/platform/silabs/tracing
file_list:
- path: SilabsPowerTracing.h

source:
- path: third_party/matter_sdk/src/platform/silabs/tracing/SilabsPowerTracing.cpp

define:
- name: SL_TRACING_ENERGY_TRACES
value: 1

ui_hints:
visibility: never
26 changes: 20 additions & 6 deletions slc/inc/platform/silabs/tracing/SilabsTracingConfig.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
#ifndef PLATFORM_SILABS_TRACING_SILABSTRACINGCONFIG_H_
#define PLATFORM_SILABS_TRACING_SILABSTRACINGCONFIG_H_

// Enable FreeRTOS runtime statistics collection
#ifndef TRACING_RUNTIME_STATS
// <<< Use Configuration Wizard in Context Menu >>>

// <q TRACING_RUNTIME_STATS> Enable FreeRTOS runtime statistics collection
// <i> Default: 0
#define TRACING_RUNTIME_STATS 0
#endif

// Maximum number of tasks to track for runtime statistics.
#ifndef TRACING_RUNTIME_STATS_MAX_TASKS
// <o TRACING_RUNTIME_STATS_MAX_TASKS> Maximum number of tasks to track for runtime statistics.
// <i> Default: 16
#define TRACING_RUNTIME_STATS_MAX_TASKS 16
#endif

// <q SL_TRACING_ENERGY_STATS> Enable energy mode statistics collection
// <i> Default: 0
#define SL_TRACING_ENERGY_STATS 0

// <o SL_TRACING_ENERGY_TRACES_SECONDS> Time to wait before outputting the results
// <i> Default: 600
#define SL_TRACING_ENERGY_TRACES_SECONDS 600

// <o SL_TRACING_ENERGY_TRACES_MAX> Maximum number of energy traces to store
// <i> Default: 3000
#define SL_TRACING_ENERGY_TRACES_MAX 3000

// <<< end of configuration section >>>

#endif // PLATFORM_SILABS_TRACING_SILABSTRACINGCONFIG_H_
Loading