#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) |
const std::string & | site () const |
XrdSiteStatistics (const XrdSiteStatistics &)=delete | |
XrdSiteStatistics (std::string const &site) | |
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 71 of file XrdStatistics.h.
XrdSiteStatistics::XrdSiteStatistics | ( | std::string const & | site | ) |
Definition at line 100 of file XrdStatistics.cc.
|
delete |
void XrdSiteStatistics::finishRead | ( | XrdReadStatistics const & | readStats | ) |
Definition at line 141 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 |
|
inline |
Definition at line 91 of file XrdStatistics.h.
|
delete |
void XrdSiteStatistics::recomputeProperties | ( | std::map< std::string, std::string > & | props | ) |
Definition at line 128 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 110 of file XrdStatistics.cc.
References class-composition::parent, and XrdReadStatistics.
Referenced by XrdAdaptor::Source::handle().
|
friend |
Definition at line 72 of file XrdStatistics.h.
Referenced by startRead().
|
private |
Definition at line 99 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 102 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 104 of file XrdStatistics.h.
Referenced by finishRead(), getTotalReadTime(), and recomputeProperties().
|
private |
Definition at line 103 of file XrdStatistics.h.
Referenced by finishRead(), getTotalBytes(), and recomputeProperties().
|
private |
Definition at line 98 of file XrdStatistics.h.
Referenced by finishRead(), and recomputeProperties().
|
private |
Definition at line 101 of file XrdStatistics.h.
Referenced by finishRead(), getTotalReadTime(), and recomputeProperties().
|
private |
Definition at line 100 of file XrdStatistics.h.
Referenced by finishRead(), getTotalBytes(), and recomputeProperties().
|
private |
Definition at line 96 of file XrdStatistics.h.
Referenced by site().