File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,17 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetCurrentHeapHighWatermark(uint64_t & cu
93
93
return CHIP_NO_ERROR;
94
94
}
95
95
96
+ CHIP_ERROR DiagnosticDataProviderImpl::ResetWatermarks ()
97
+ {
98
+ // If implemented, the server SHALL set the value of the CurrentHeapHighWatermark attribute to the
99
+ // value of the CurrentHeapUsed.
100
+
101
+ // On Linux, the write operation is non-op since we always rely on the mallinfo system
102
+ // function to get the current heap memory.
103
+
104
+ return CHIP_NO_ERROR;
105
+ }
106
+
96
107
CHIP_ERROR DiagnosticDataProviderImpl::GetRebootCount (uint16_t & rebootCount)
97
108
{
98
109
uint32_t count = 0 ;
Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ class DiagnosticDataProviderImpl : public DiagnosticDataProvider
39
39
40
40
// ===== Methods that implement the PlatformManager abstract interface.
41
41
42
+ bool SupportsWatermarks () override { return true ; }
42
43
CHIP_ERROR GetCurrentHeapFree (uint64_t & currentHeapFree) override ;
43
44
CHIP_ERROR GetCurrentHeapUsed (uint64_t & currentHeapUsed) override ;
44
45
CHIP_ERROR GetCurrentHeapHighWatermark (uint64_t & currentHeapHighWatermark) override ;
46
+ CHIP_ERROR ResetWatermarks () override ;
45
47
46
48
CHIP_ERROR GetRebootCount (uint16_t & rebootCount) override ;
47
49
CHIP_ERROR GetUpTime (uint64_t & upTime) override ;
You can’t perform that action at this time.
0 commit comments