mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
8c73c9747b
A useful metric for a device is the amount of time it spends in each mle role. This could help to identify connectivity issues on SED with weak signal and frequent detaches by checking the time spent in detached mode. It would also be useful to know the time spent in leader state when having multiple FTDs frequently joining and splitting in different partitions. This information is not available from the role counters, since time spent in each state is not related to the number of entries to that state. This commit adds mle counters to track time spent in each role, when uptime feature is enabled (`OPENTHREAD_CONFIG_UPTIME_ENABLE=1`).