ATLAS Offline Software
Classes | Functions
CoWTools Namespace Reference

Classes

class  CoWLibrary
 
class  CoWRecord
 
class  CoWRecordStats
 
class  Monitor
 
class  MStrStream
 
class  StreamBase
 
class  StrStream
 
class  VecStream
 

Functions

std::ostream & operator<< (std::ostream &os, const CoWTools::CoWLibrary &l)
 
std::ostream & operator<< (std::ostream &out, const CoWRecordStats &m)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& CoWTools::operator<< ( std::ostream &  os,
const CoWTools::CoWLibrary l 
)

Definition at line 54 of file CoWLibrary.cxx.

54  {
55  // char buff[1024];
56  // snprintf(buff,1024,"Library= %s"
57  // );
58  // out<<buff;
59 
60  os<<" Lib= "<<l.m_libName<<" "<<l.m_ms;
61  return os;
62  }

◆ operator<<() [2/2]

std::ostream& CoWTools::operator<< ( std::ostream &  out,
const CoWRecordStats m 
)

Definition at line 67 of file CoWRecordStats.cxx.

67  {
68  if(m.m_summary){
69  char buff[2048];
70  snprintf(buff,2048,"VMem= %8lld, RSS= %8lld, PSS= %8lld, Shared= %8lld, Private= %8lld, Swap= %8lld Anon= %8lld",
71  m.m_vals[0],m.m_vals[1],m.m_vals[2],m.m_vals[3]+m.m_vals[4],m.m_vals[5]+m.m_vals[6],m.m_vals[10],m.m_vals[8]);
72  out<<buff;
73  }else{
74  char buff[4000];
75  snprintf(buff,4000,
76  "Size: %8lld kB\n" \
77  "Rss: %8lld kB\n" \
78  "Pss: %8lld kB\n" \
79  "Shared_Clean: %8lld kB\n" \
80  "Shared_Dirty: %8lld kB\n" \
81  "Private_Clean: %8lld kB\n" \
82  "Private_Dirty: %8lld kB\n" \
83  "Referenced: %8lld kB\n" \
84  "Anonymous: %8lld kB\n" \
85  "AnonHugePages: %8lld kB\n" \
86  "Swap: %8lld kB\n" \
87  "KernelPageSize: %8lld kB\n" \
88  "MMUPageSize: %8lld kB\n" \
89  "Locked: %8lld kB\n",
90  m.m_vals[0],
91  m.m_vals[1],
92  m.m_vals[2],
93  m.m_vals[3],
94  m.m_vals[4],
95  m.m_vals[5],
96  m.m_vals[6],
97  m.m_vals[7],
98  m.m_vals[8],
99  m.m_vals[9],
100  m.m_vals[10],
101  m.m_vals[11],
102  m.m_vals[12],
103  m.m_vals[13]);
104  out<<buff;
105  }
106  return out;
107  }
get_hdefs.buff
buff
Definition: get_hdefs.py:61
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231