ATLAS Offline Software
Loading...
Searching...
No Matches
CoWTools::StrStream Class Reference

#include <StrStream.h>

Inheritance diagram for CoWTools::StrStream:
Collaboration diagram for CoWTools::StrStream:

Public Member Functions

 StrStream (std::string &out)
 ~StrStream ()
virtual void putResults (const CoWRecordStats &)

Private Attributes

std::string & m_out

Detailed Description

Definition at line 14 of file StrStream.h.

Constructor & Destructor Documentation

◆ StrStream()

CoWTools::StrStream::StrStream ( std::string & out)
inline

Definition at line 16 of file StrStream.h.

16:m_out(out){}
std::string & m_out
Definition StrStream.h:20

◆ ~StrStream()

CoWTools::StrStream::~StrStream ( )
inline

Definition at line 17 of file StrStream.h.

17{};

Member Function Documentation

◆ putResults()

void CoWTools::StrStream::putResults ( const CoWRecordStats & res)
virtual

Implements CoWTools::StreamBase.

Definition at line 8 of file StrStream.cxx.

8 {
9 char buff[2048];
10 const long long * vals=res.getValueArray();
11 snprintf(buff,2048,"VMem= %8lld, RSS= %8lld, PSS= %8lld, Shared= %8lld, Private= %8lld, Swap=%8lld, Anon= %8lld",
12 vals[0],vals[1],vals[2],vals[3]+vals[4],vals[5]+vals[6],vals[10],vals[8]);
13 m_out=buff;
14}
std::pair< std::vector< unsigned int >, bool > res

Member Data Documentation

◆ m_out

std::string& CoWTools::StrStream::m_out
private

Definition at line 20 of file StrStream.h.


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