CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
XrdAdaptor::XrdReadStatistics Class Reference

#include <XrdStatistics.h>

Public Member Functions

XrdReadStatisticsoperator= (const XrdReadStatistics &)=delete
 
 XrdReadStatistics (const XrdReadStatistics &)=delete
 
 ~XrdReadStatistics ()
 

Private Member Functions

uint64_t elapsedNS () const
 
int readCount () const
 
int size () const
 
 XrdReadStatistics (std::shared_ptr< XrdSiteStatistics > parent, IOSize size, size_t count)
 

Private Attributes

IOSize m_count
 
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_parent
 
size_t m_size
 
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
 

Friends

class XrdSiteStatistics
 

Detailed Description

Definition at line 112 of file XrdStatistics.h.

Constructor & Destructor Documentation

XrdAdaptor::XrdReadStatistics::~XrdReadStatistics ( )
inline

Definition at line 117 of file XrdStatistics.h.

References KineDebug3::count(), class-composition::parent, and findQualityFiles::size.

117 {m_parent->finishRead(*this);}
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_parent
XrdAdaptor::XrdReadStatistics::XrdReadStatistics ( const XrdReadStatistics )
delete
XrdReadStatistics::XrdReadStatistics ( std::shared_ptr< XrdSiteStatistics parent,
IOSize  size,
size_t  count 
)
private

Definition at line 186 of file XrdStatistics.cc.

186  :
187  m_size(size),
188  m_count(count),
189  m_parent(parent),
191 {
192 }
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_parent
std::chrono::time_point< std::chrono::high_resolution_clock > m_start

Member Function Documentation

uint64_t XrdReadStatistics::elapsedNS ( ) const
private

Definition at line 196 of file XrdStatistics.cc.

References KineDebug3::count(), end, m_start, and cmsPerfSuiteHarvest::now.

Referenced by XrdAdaptor::XrdSiteStatistics::finishRead().

197 {
198  std::chrono::time_point<std::chrono::high_resolution_clock> end = std::chrono::high_resolution_clock::now();
199  return std::chrono::duration_cast<std::chrono::nanoseconds>(end-m_start).count();
200 }
#define end
Definition: vmac.h:37
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
boost::date_time::subsecond_duration< boost::posix_time::time_duration, 1000000000 > nanoseconds
XrdReadStatistics& XrdAdaptor::XrdReadStatistics::operator= ( const XrdReadStatistics )
delete
int XrdAdaptor::XrdReadStatistics::readCount ( ) const
inlineprivate

Definition at line 125 of file XrdStatistics.h.

Referenced by XrdAdaptor::XrdSiteStatistics::finishRead().

125 {return m_count;}
int XrdAdaptor::XrdReadStatistics::size ( void  ) const
inlineprivate

Friends And Related Function Documentation

friend class XrdSiteStatistics
friend

Definition at line 114 of file XrdStatistics.h.

Member Data Documentation

IOSize XrdAdaptor::XrdReadStatistics::m_count
private

Definition at line 129 of file XrdStatistics.h.

edm::propagate_const<std::shared_ptr<XrdSiteStatistics> > XrdAdaptor::XrdReadStatistics::m_parent
private

Definition at line 130 of file XrdStatistics.h.

size_t XrdAdaptor::XrdReadStatistics::m_size
private

Definition at line 128 of file XrdStatistics.h.

std::chrono::time_point<std::chrono::high_resolution_clock> XrdAdaptor::XrdReadStatistics::m_start
private

Definition at line 131 of file XrdStatistics.h.

Referenced by elapsedNS().