OmniSciDB
a5dc49c757
|
Parse /proc/buddyinfo into a few fragmentation-related data. More...
#include <DataMgr.h>
Public Member Functions | |
void | parseBuddyinfo () |
double | getFragmentationPercent () const |
size_t | getSumAvailPages () const |
size_t | getSumHighestBlocks () const |
Private Attributes | |
double | frag_percent_ {0} |
size_t | sum_avail_pages_ {0} |
size_t | sum_highest_blocks_ {0} |
Parse /proc/buddyinfo into a few fragmentation-related data.
|
inline |
|
inline |
Definition at line 116 of file DataMgr.h.
References sum_avail_pages_.
|
inline |
Definition at line 117 of file DataMgr.h.
References sum_highest_blocks_.
void Data_Namespace::ProcBuddyinfoParser::parseBuddyinfo | ( | ) |
Definition at line 846 of file DataMgr.cpp.
References frag_percent_, Data_Namespace::anonymous_namespace{DataMgr.cpp}::kErrorCodeUnableToOpenFile, parse_ast::line, sum_avail_pages_, sum_highest_blocks_, and Data_Namespace::anonymous_namespace{DataMgr.cpp}::tokenize().
Referenced by Data_Namespace::DataMgr::getSystemMemoryUsage().
|
private |
Definition at line 120 of file DataMgr.h.
Referenced by getFragmentationPercent(), and parseBuddyinfo().
|
private |
Definition at line 121 of file DataMgr.h.
Referenced by getSumAvailPages(), and parseBuddyinfo().
|
private |
Definition at line 122 of file DataMgr.h.
Referenced by getSumHighestBlocks(), and parseBuddyinfo().