CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::high_resolution_clock > 
m_start
 

Friends

class XrdSiteStatistics
 

Detailed Description

Definition at line 103 of file XrdStatistics.h.

Constructor & Destructor Documentation

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
XrdAdaptor::XrdReadStatistics::XrdReadStatistics ( const XrdReadStatistics )
delete
XrdReadStatistics::XrdReadStatistics ( std::shared_ptr< XrdSiteStatistics parent,
edm::storage::IOSize  size,
size_t  count 
)
private

Definition at line 160 of file XrdStatistics.cc.

edm::storage::IOSize m_count
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 163 of file XrdStatistics.cc.

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

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

163  {
164  std::chrono::time_point<std::chrono::high_resolution_clock> end = std::chrono::high_resolution_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::high_resolution_clock > m_start
string end
Definition: dataset.py:937
XrdReadStatistics& XrdAdaptor::XrdReadStatistics::operator= ( const XrdReadStatistics )
delete
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
int XrdAdaptor::XrdReadStatistics::size ( void  ) const
inlineprivate

Friends And Related Function Documentation

friend class XrdSiteStatistics
friend

Definition at line 104 of file XrdStatistics.h.

Member Data Documentation

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

Definition at line 119 of file XrdStatistics.h.

Referenced by readCount().

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

Definition at line 120 of file XrdStatistics.h.

Referenced by ~XrdReadStatistics().

size_t XrdAdaptor::XrdReadStatistics::m_size
private

Definition at line 118 of file XrdStatistics.h.

Referenced by size().

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

Definition at line 121 of file XrdStatistics.h.

Referenced by elapsedNS().