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, edm::storage::IOSize size, size_t count)
 

Private Attributes

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

Friends

class XrdSiteStatistics
 

Detailed Description

Definition at line 103 of file XrdStatistics.h.

Constructor & Destructor Documentation

◆ ~XrdReadStatistics()

XrdAdaptor::XrdReadStatistics::~XrdReadStatistics ( )
inline

Definition at line 107 of file XrdStatistics.h.

References m_parent.

107 { m_parent->finishRead(*this); }
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_parent

◆ XrdReadStatistics() [1/2]

XrdAdaptor::XrdReadStatistics::XrdReadStatistics ( const XrdReadStatistics )
delete

◆ XrdReadStatistics() [2/2]

XrdReadStatistics::XrdReadStatistics ( std::shared_ptr< XrdSiteStatistics parent,
edm::storage::IOSize  size,
size_t  count 
)
private

Definition at line 160 of file XrdStatistics.cc.

Member Function Documentation

◆ elapsedNS()

uint64_t XrdReadStatistics::elapsedNS ( ) const
private

Definition at line 163 of file XrdStatistics.cc.

References submitPVResolutionJobs::count, m_start, and submitPVValidationJobs::now.

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

163  {
164  std::chrono::time_point<std::chrono::steady_clock> end = std::chrono::steady_clock::now();
165  return std::chrono::duration_cast<std::chrono::nanoseconds>(end - m_start).count();
166 }
boost::date_time::subsecond_duration< boost::posix_time::time_duration, 1000000000 > nanoseconds
std::chrono::time_point< std::chrono::steady_clock > m_start

◆ operator=()

XrdReadStatistics& XrdAdaptor::XrdReadStatistics::operator= ( const XrdReadStatistics )
delete

◆ readCount()

int XrdAdaptor::XrdReadStatistics::readCount ( ) const
inlineprivate

Definition at line 115 of file XrdStatistics.h.

References m_count.

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

115 { return m_count; }
edm::storage::IOSize m_count

◆ size()

int XrdAdaptor::XrdReadStatistics::size ( void  ) const
inlineprivate

Friends And Related Function Documentation

◆ XrdSiteStatistics

friend class XrdSiteStatistics
friend

Definition at line 104 of file XrdStatistics.h.

Member Data Documentation

◆ m_count

edm::storage::IOSize XrdAdaptor::XrdReadStatistics::m_count
private

Definition at line 119 of file XrdStatistics.h.

Referenced by readCount().

◆ m_parent

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

Definition at line 120 of file XrdStatistics.h.

Referenced by ~XrdReadStatistics().

◆ m_size

size_t XrdAdaptor::XrdReadStatistics::m_size
private

Definition at line 118 of file XrdStatistics.h.

Referenced by size().

◆ m_start

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

Definition at line 121 of file XrdStatistics.h.

Referenced by elapsedNS().