Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::LinuxProcMgr Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Utilities/LinuxProcMgr.h"

Public Types

using sid_size_type = ScheduleID::size_type
 

Public Member Functions

 LinuxProcMgr (sid_size_type nSchedules)
 
 ~LinuxProcMgr () noexcept
 
LinuxProcData::proc_tuple getCurrentData (sid_size_type) const
 
double getVmPeak () const
 
double getVmHWM () const
 
 LinuxProcMgr (LinuxProcMgr const &)=delete
 
 LinuxProcMgr (LinuxProcMgr &&)=delete
 
LinuxProcMgroperator= (LinuxProcMgr const &)=delete
 
LinuxProcMgroperator= (LinuxProcMgr &&)=delete
 

Private Member Functions

double getStatusData_ (std::string const &field) const
 

Private Attributes

pid_t pid_
 
long pgSize_
 
std::vector< FILE * > files_ {}
 

Detailed Description

Definition at line 23 of file LinuxProcMgr.h.

Member Typedef Documentation

Definition at line 25 of file LinuxProcMgr.h.

Constructor & Destructor Documentation

art::LinuxProcMgr::LinuxProcMgr ( sid_size_type  nSchedules)
explicit

Referenced by getVmHWM().

art::LinuxProcMgr::~LinuxProcMgr ( )
noexcept
art::LinuxProcMgr::LinuxProcMgr ( LinuxProcMgr const &  )
delete
art::LinuxProcMgr::LinuxProcMgr ( LinuxProcMgr &&  )
delete

Member Function Documentation

LinuxProcData::proc_tuple art::LinuxProcMgr::getCurrentData ( sid_size_type  ) const
double art::LinuxProcMgr::getStatusData_ ( std::string const &  field) const
private

Referenced by getVmHWM(), and getVmPeak().

double art::LinuxProcMgr::getVmHWM ( ) const
inline

Definition at line 36 of file LinuxProcMgr.h.

References getStatusData_(), LinuxProcMgr(), operator=(), and string.

Referenced by art::MemoryTracker::recordPeakUsages_().

37  {
38  return getStatusData_("VmHWM");
39  }
double getStatusData_(std::string const &field) const
double art::LinuxProcMgr::getVmPeak ( ) const
inline

Definition at line 31 of file LinuxProcMgr.h.

References getStatusData_().

Referenced by art::MemoryTracker::recordPeakUsages_().

32  {
33  return getStatusData_("VmPeak");
34  }
double getStatusData_(std::string const &field) const
LinuxProcMgr& art::LinuxProcMgr::operator= ( LinuxProcMgr const &  )
delete

Referenced by getVmHWM().

LinuxProcMgr& art::LinuxProcMgr::operator= ( LinuxProcMgr &&  )
delete

Member Data Documentation

std::vector<FILE*> art::LinuxProcMgr::files_ {}
private

Definition at line 52 of file LinuxProcMgr.h.

long art::LinuxProcMgr::pgSize_
private

Definition at line 51 of file LinuxProcMgr.h.

pid_t art::LinuxProcMgr::pid_
private

Definition at line 50 of file LinuxProcMgr.h.


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