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

Constructor & Destructor Documentation

◆ ~XrdReadStatistics()

XrdAdaptor::XrdReadStatistics::~XrdReadStatistics ( )
inline

Definition at line 111 of file XrdStatistics.h.

111 { m_parent->finishRead(*this); }

References m_parent.

◆ XrdReadStatistics() [1/2]

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

◆ XrdReadStatistics() [2/2]

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

Member Function Documentation

◆ elapsedNS()

uint64_t XrdReadStatistics::elapsedNS ( ) const
private

Definition at line 157 of file XrdStatistics.cc.

157  {
158  std::chrono::time_point<std::chrono::high_resolution_clock> end = std::chrono::high_resolution_clock::now();
159  return std::chrono::duration_cast<std::chrono::nanoseconds>(end - m_start).count();
160 }

References mps_fire::end, m_start, and submitPVValidationJobs::now.

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

◆ operator=()

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

◆ readCount()

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

Definition at line 119 of file XrdStatistics.h.

119 { return m_count; }

References m_count.

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

◆ size()

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

Friends And Related Function Documentation

◆ XrdSiteStatistics

friend class XrdSiteStatistics
friend

Definition at line 108 of file XrdStatistics.h.

Member Data Documentation

◆ m_count

IOSize XrdAdaptor::XrdReadStatistics::m_count
private

Definition at line 123 of file XrdStatistics.h.

Referenced by readCount().

◆ m_parent

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

Definition at line 124 of file XrdStatistics.h.

Referenced by ~XrdReadStatistics().

◆ m_size

size_t XrdAdaptor::XrdReadStatistics::m_size
private

Definition at line 122 of file XrdStatistics.h.

Referenced by size().

◆ m_start

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

Definition at line 125 of file XrdStatistics.h.

Referenced by elapsedNS().

submitPVValidationJobs.now
now
Definition: submitPVValidationJobs.py:639
XrdAdaptor::XrdReadStatistics::m_parent
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_parent
Definition: XrdStatistics.h:124
XrdAdaptor::XrdReadStatistics::size
int size() const
Definition: XrdStatistics.h:120
mps_fire.end
end
Definition: mps_fire.py:242
submitPVResolutionJobs.count
count
Definition: submitPVResolutionJobs.py:352
XrdAdaptor::XrdReadStatistics::m_count
IOSize m_count
Definition: XrdStatistics.h:123
class-composition.parent
parent
Definition: class-composition.py:98
XrdAdaptor::XrdReadStatistics::m_size
size_t m_size
Definition: XrdStatistics.h:122
XrdAdaptor::XrdReadStatistics::m_start
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
Definition: XrdStatistics.h:125