Public Member Functions | Private Attributes | List of all members
CPUStats Class Reference

#include <cpu_stats.h>

Public Member Functions

const std::vector< CPUData > & GetEntries () const
 return cpu data entries. More...
 
void ReadStatsCPU ()
 parse /proc/stats. More...
 

Private Attributes

std::vector< CPUDataentries_
 

Detailed Description

Parse /proc/stat.

Definition at line 26 of file cpu_stats.h.

Member Function Documentation

const std::vector<CPUData>& CPUStats::GetEntries ( ) const
inline

return cpu data entries.

Definition at line 32 of file cpu_stats.h.

void CPUStats::ReadStatsCPU ( )

parse /proc/stats.

Definition at line 23 of file cpu_stats.cpp.

Member Data Documentation

std::vector<CPUData> CPUStats::entries_
private

Definition at line 40 of file cpu_stats.h.


The documentation for this class was generated from the following files:


health_metric_collector
Author(s): AWS RoboMaker
autogenerated on Fri Mar 5 2021 03:32:42