Zigbee Protocol Controller 1.6.0
|
#include <zigpc_mem_usage_metric.hpp>
Public Member Functions | |
zigpc_mem_usage_metric (zigpc_diagnostics_notification ¬if, std::string const &metric_id) | |
float | get_value (void) const |
Get the memory usage. More... | |
void | update_value (void) final |
Update the memory usage by process. More... | |
Public Member Functions inherited from zigpc_diagnostics_metric | |
zigpc_diagnostics_metric (zigpc_diagnostics_notification ¬if, std::string metric_id) | |
Generic diagnostic metric constructor. More... | |
std::string | get_metric_id (void) const |
std::string | get_serialized_value (void) const |
virtual void | update_value (void)=0 |
Private Attributes | |
long int | page_size_kb = zigpc_diagnostics::util::get_pagesize_kb() |
unsigned long | total_mem_kb = zigpc_diagnostics::util::get_mem_total() |
float | mem_usage = 0.f |
Static Private Attributes | |
static constexpr char | LOG_TAG [] = "zigpc_metric_ram_usage" |
Additional Inherited Members | |
Protected Attributes inherited from zigpc_diagnostics_metric | |
zigpc_diagnostics_notification & | on_update_complete |
std::string | metric_id |
std::string | serialized_value |
|
inline |
|
inline |
Get the memory usage.
|
inlinefinalvirtual |
Update the memory usage by process.
Implements zigpc_diagnostics_metric.
|
staticconstexprprivate |
|
private |
|
private |
|
private |