#include <XrdStatistics.h>
Public Member Functions | |
void | finishRead (XrdReadStatistics const &) |
uint64_t | getTotalBytes () const |
std::chrono::nanoseconds | getTotalReadTime () |
XrdSiteStatistics & | operator= (const XrdSiteStatistics &)=delete |
void | recomputeProperties (std::map< std::string, std::string > &props) |
std::string const & | site () const |
XrdSiteStatistics (std::string const &site) | |
XrdSiteStatistics (const XrdSiteStatistics &)=delete | |
Static Public Member Functions | |
static std::shared_ptr< XrdReadStatistics > | startRead (std::shared_ptr< XrdSiteStatistics > parent, std::shared_ptr< ClientRequest > req) |
Private Attributes | |
std::atomic< unsigned > | m_chunkCount |
std::atomic< unsigned > | m_readCount |
std::atomic< uint64_t > | m_readNS |
std::atomic< uint64_t > | m_readSize |
std::atomic< unsigned > | m_readvCount |
std::atomic< uint64_t > | m_readvNS |
std::atomic< uint64_t > | m_readvSize |
const std::string | m_site = "Unknown" |
Friends | |
class | XrdReadStatistics |
Definition at line 78 of file XrdStatistics.h.
XrdSiteStatistics::XrdSiteStatistics | ( | std::string const & | site | ) |
Definition at line 113 of file XrdStatistics.cc.
|
delete |
void XrdSiteStatistics::finishRead | ( | XrdReadStatistics const & | readStats | ) |
Definition at line 168 of file XrdStatistics.cc.
References XrdAdaptor::XrdReadStatistics::elapsedNS(), m_chunkCount, m_readCount, m_readNS, m_readSize, m_readvCount, m_readvNS, m_readvSize, XrdAdaptor::XrdReadStatistics::readCount(), and XrdAdaptor::XrdReadStatistics::size().
|
inline |
Definition at line 97 of file XrdStatistics.h.
|
inline |
Definition at line 98 of file XrdStatistics.h.
|
delete |
void XrdSiteStatistics::recomputeProperties | ( | std::map< std::string, std::string > & | props | ) |
Definition at line 152 of file XrdStatistics.cc.
References d2str(), i2str(), m_chunkCount, m_readCount, m_readNS, m_readSize, m_readvCount, m_readvNS, and m_readvSize.
|
inline |
|
static |
Definition at line 126 of file XrdStatistics.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and XrdReadStatistics.
Referenced by XrdAdaptor::Source::handle().
|
friend |
Definition at line 80 of file XrdStatistics.h.
Referenced by startRead().
|
private |
Definition at line 104 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 107 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 109 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 108 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 103 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 106 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 105 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 101 of file XrdStatistics.h.