| <?xml version="1.0"?> |
| <!-- |
| Copyright (c) 2021-2023 Project CHIP Authors |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <configurator> |
| <domain name="CHIP"/> |
| <struct name="ThreadMetricsStruct"> |
| <cluster code="0x0034"/> |
| <item name="ID" type="int64u"/> |
| <item name="Name" type="char_string" length="8" optional="true"/> |
| <item name="StackFreeCurrent" type="int32u" optional="true"/> |
| <item name="StackFreeMinimum" type="int32u" optional="true"/> |
| <item name="StackSize" type="int32u" optional="true"/> |
| </struct> |
| <cluster> |
| <domain>General</domain> |
| <name>Software Diagnostics</name> |
| <code>0x0034</code> |
| <define>SOFTWARE_DIAGNOSTICS_CLUSTER</define> |
| <description>The Software Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems.</description> |
| |
| <features> |
| <feature bit="0" code="WTRMRK" name="Watermarks" summary="Node makes available the metrics for high watermark related to memory consumption."> |
| <optionalConform/> |
| </feature> |
| </features> |
| |
| <attribute side="server" code="0x00" define="THREAD_METRICS" type="array" entryType="ThreadMetricsStruct" length="254" writable="false" optional="true">ThreadMetrics</attribute> |
| <attribute side="server" code="0x01" define="CURRENT_HEAP_FREE" type="int64u" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="false" default="0x0000000000000000" optional="true">CurrentHeapFree</attribute> |
| <attribute side="server" code="0x02" define="CURRENT_HEAP_USED" type="int64u" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="false" default="0x0000000000000000" optional="true">CurrentHeapUsed</attribute> |
| <attribute side="server" code="0x03" define="CURRENT_HEAP_HIGH_WATERMARK" type="int64u" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="false" default="0x0000000000000000" optional="true">CurrentHeapHighWatermark</attribute> |
| <command source="client" code="0x00" name="ResetWatermarks" optional="true" cli="chip software_diagnostics resetwatermarks"> |
| <description>Reception of this command SHALL reset the values: The StackFreeMinimum field of the ThreadMetrics attribute, CurrentHeapHighWaterMark attribute.</description> |
| <access op="invoke" privilege="manage"/> |
| </command> |
| <event side="server" code="0x00" name="SoftwareFault" priority="info" optional="true"> |
| <description>Indicate the last software fault that has taken place on the Node.</description> |
| <field id="0" name="ID" type="int64u"/> |
| <field id="1" name="Name" type="char_string" length="8" optional="true"/> |
| <field id="2" name="FaultRecording" type="octet_string" length="1024" optional="true"/> |
| </event> |
| </cluster> |
| |
| </configurator> |