#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 67 of file XrdStatistics.h.
XrdSiteStatistics::XrdSiteStatistics | ( | std::string const & | site | ) |
Definition at line 106 of file XrdStatistics.cc.
|
delete |
void XrdSiteStatistics::finishRead | ( | XrdReadStatistics const & | readStats | ) |
Definition at line 147 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 86 of file XrdStatistics.h.
References m_readSize, and m_readvSize.
|
inline |
Definition at line 87 of file XrdStatistics.h.
References m_readNS, and m_readvNS.
|
delete |
void XrdSiteStatistics::recomputeProperties | ( | std::map< std::string, std::string > & | props | ) |
Definition at line 134 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 116 of file XrdStatistics.cc.
References class-composition::parent, and XrdReadStatistics.
Referenced by XrdAdaptor::Source::handle().
|
friend |
Definition at line 68 of file XrdStatistics.h.
Referenced by startRead().
|
private |
Definition at line 95 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 98 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 100 of file XrdStatistics.h.
Referenced by finishRead(), getTotalReadTime(), and recomputeProperties().
|
private |
Definition at line 99 of file XrdStatistics.h.
Referenced by finishRead(), getTotalBytes(), and recomputeProperties().
|
private |
Definition at line 94 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 97 of file XrdStatistics.h.
Referenced by finishRead(), getTotalReadTime(), and recomputeProperties().
|
private |
Definition at line 96 of file XrdStatistics.h.
Referenced by finishRead(), getTotalBytes(), and recomputeProperties().
|
private |
Definition at line 92 of file XrdStatistics.h.
Referenced by site().