diff --git a/examples/platform/silabs/efr32/BUILD.gn b/examples/platform/silabs/efr32/BUILD.gn index 672825e011..f7478beaab 100644 --- a/examples/platform/silabs/efr32/BUILD.gn +++ b/examples/platform/silabs/efr32/BUILD.gn @@ -145,10 +145,7 @@ config("efr32-common-config") { } source_set("efr32-common") { - deps = [ - "${chip_root}/src/tracing", - "${silabs_common_plat_dir}/provision:storage", - ] + deps = [ "${silabs_common_plat_dir}/provision:storage" ] defines = [] public_deps = [] public_configs = [ diff --git a/src/platform/silabs/tracing/Diagram.mmd b/src/platform/silabs/tracing/Diagram.mmd deleted file mode 100644 index 594b9460eb..0000000000 --- a/src/platform/silabs/tracing/Diagram.mmd +++ /dev/null @@ -1,65 +0,0 @@ -````mermaid -classDiagram - class SilabsTracer { - +static SilabsTracer& Instance() - +CHIP_ERROR Init() - +CHIP_ERROR StartWatermarksStorage(PersistentStorageDelegate* storage) - +void TimeTraceBegin(TimeTraceOperation aOperation) - +void TimeTraceEnd(TimeTraceOperation aOperation, CHIP_ERROR error = CHIP_NO_ERROR) - +void TimeTraceInstant(TimeTraceOperation aOperation, CHIP_ERROR error = CHIP_NO_ERROR) - +CHIP_ERROR OutputTimeTracker(const TimeTracker& tracker) - +CHIP_ERROR OutputWaterMark(TimeTraceOperation aOperation) - +CHIP_ERROR OutputAllWaterMarks() - +CHIP_ERROR TraceBufferFlushAll() - +CHIP_ERROR TraceBufferFlushByOperation(TimeTraceOperation aOperation) - +TimeTracker GetTimeTracker(TimeTraceOperation aOperation) - +Watermark GetWatermark(TimeTraceOperation aOperation) - +CHIP_ERROR SaveWatermarks() - +CHIP_ERROR LoadWatermarks() - +CHIP_ERROR GetTraceCount(size_t& count) const - +CHIP_ERROR GetTraceByIndex(size_t index, const char*& trace) const - -void TraceBufferClear() - -CHIP_ERROR OutputTrace(const TimeTracker& tracker) - -static SilabsTracer sInstance - -TimeTrackerList mTimeTrackerList - -TimeTracker mLatestTimeTrackers[kNumTraces] - -Watermark mWatermarks[kNumTraces] - -PersistentStorageDelegate* mStorage - -size_t mBufferedTrackerCount - } - - class TimeTracker { - +System::Clock::Milliseconds32 mStartTime - +System::Clock::Milliseconds32 mEndTime - +TimeTraceOperation mOperation - +OperationType mType - +CHIP_ERROR mError - } - - class Watermark { - +System::Clock::Milliseconds32 mMovingAverage - +System::Clock::Milliseconds32 mMaxTimeMs - +System::Clock::Milliseconds32 mMinTimeMs - +uint32_t mTotalCount - +uint32_t mSuccessfullCount - +uint32_t mCountAboveAvg - } - - class TimeTrackerList { - +chip::SingleLinkedListNode* head - +void Insert(const TimeTracker& tracker) - +void Remove(size_t index) - } - - class SingleLinkedListNode { - +TimeTracker mValue - +SingleLinkedListNode* mpNext - } - - SilabsTracer --> TimeTracker - SilabsTracer --> Watermark - SilabsTracer --> TimeTrackerList - TimeTrackerList --> SingleLinkedListNode - SingleLinkedListNode --> TimeTracker -```mermaid -```` diff --git a/src/platform/silabs/tracing/SequenceDiagram.mmd b/src/platform/silabs/tracing/SequenceDiagram.mmd deleted file mode 100644 index 2e048db1f3..0000000000 --- a/src/platform/silabs/tracing/SequenceDiagram.mmd +++ /dev/null @@ -1,16 +0,0 @@ -````mermaid -sequenceDiagram - participant Client - participant SilabsTracer - participant TimeTracker - participant Watermark - - Client->>SilabsTracer: TimeTraceInstant(aOperation, error) - SilabsTracer->>TimeTracker: Create tracker - SilabsTracer->>SilabsTracer: OutputTrace(tracker) - SilabsTracer->>SilabsTracer: OutputTimeTracker(tracker) - SilabsTracer->>Watermark: Update Watermark - SilabsTracer->>Client: Return result - -```mermaid -````