Public Member Functions | Private Attributes | Friends | List of all members
art::detail::LinuxMallInfo Class Reference

#include <LinuxMallInfo.h>

Public Member Functions

 LinuxMallInfo ()
 
struct mallinfo get () const
 

Private Attributes

struct mallinfo minfo_
 

Friends

std::ostream & operator<< (std::ostream &os, LinuxMallInfo const &info)
 

Detailed Description

Definition at line 37 of file LinuxMallInfo.h.

Constructor & Destructor Documentation

art::detail::LinuxMallInfo::LinuxMallInfo ( )
inline

Definition at line 39 of file LinuxMallInfo.h.

39 : minfo_(mallinfo()) {}

Member Function Documentation

struct mallinfo art::detail::LinuxMallInfo::get ( ) const
inline

Definition at line 42 of file LinuxMallInfo.h.

43  {
44  return minfo_;
45  }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
LinuxMallInfo const &  info 
)
friend

Definition at line 55 of file LinuxMallInfo.h.

56  {
57  auto const& minfo = info.minfo_;
58  os << " HEAP-ARENA [ SIZE-BYTES " << minfo.arena << " N-UNUSED-CHUNKS "
59  << minfo.ordblks << " TOP-FREE-BYTES " << minfo.keepcost << " ]"
60  << " HEAP-MAPPED [ SIZE-BYTES " << minfo.hblkhd << " N-CHUNKS "
61  << minfo.hblks << " ]"
62  << " HEAP-USED-BYTES " << minfo.uordblks << " HEAP-UNUSED-BYTES "
63  << minfo.fordblks;
64  return os;
65  }

Member Data Documentation

struct mallinfo art::detail::LinuxMallInfo::minfo_
private

Definition at line 48 of file LinuxMallInfo.h.


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