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

float 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 96 of file XrdStatistics.h.

Constructor & Destructor Documentation

XrdAdaptor::XrdReadStatistics::~XrdReadStatistics ( )
inline

Definition at line 101 of file XrdStatistics.h.

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

101 {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 165 of file XrdStatistics.cc.

165  :
166  m_size(size),
167  m_count(count),
168  m_parent(parent),
170 {
171 }
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_parent
std::chrono::time_point< std::chrono::high_resolution_clock > m_start

Member Function Documentation

float XrdReadStatistics::elapsedNS ( ) const
private

Definition at line 175 of file XrdStatistics.cc.

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

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

176 {
177  std::chrono::time_point<std::chrono::high_resolution_clock> end = std::chrono::high_resolution_clock::now();
178  return static_cast<int>(std::chrono::duration_cast<std::chrono::nanoseconds>(end-m_start).count());
179 }
#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 109 of file XrdStatistics.h.

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

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

Friends And Related Function Documentation

friend class XrdSiteStatistics
friend

Definition at line 98 of file XrdStatistics.h.

Member Data Documentation

IOSize XrdAdaptor::XrdReadStatistics::m_count
private

Definition at line 113 of file XrdStatistics.h.

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

Definition at line 114 of file XrdStatistics.h.

size_t XrdAdaptor::XrdReadStatistics::m_size
private

Definition at line 112 of file XrdStatistics.h.

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

Definition at line 115 of file XrdStatistics.h.

Referenced by elapsedNS().