Zigbee Protocol Controller 1.6.0
zigpc_mem_usage_metric.hpp File Reference
#include <fstream>
#include <iomanip>
#include <iostream>
#include <unistd.h>
#include "zigpc_diagnostics_metric.hpp"

Go to the source code of this file.

Classes

class  zigpc_mem_usage_metric
 

Namespaces

namespace  zigpc_diagnostics
 
namespace  zigpc_diagnostics::util
 

Functions

static long int zigpc_diagnostics::util::get_pagesize_kb (void)
 Get system page size in KiloBytes. More...
 
static unsigned long zigpc_diagnostics::util::get_mem_total (void)
 Get system total memory usage in KiloBytes. More...
 
static unsigned long zigpc_diagnostics::util::get_resident_set_kb (void)
 Get the resident memory pages used by program. This number is in KiloBytes. More...
 

Variables

static constexpr char zigpc_diagnostics::util::LOG_TAG [] = "zigpc_metric_ram_usage"
 
static constexpr char zigpc_diagnostics::util::PATH_PROC_MEMINFO [] = "/proc/meminfo"
 
static constexpr char zigpc_diagnostics::util::PATH_PROC_STATM [] = "/proc/self/statm"