1 #ifndef __XRD_STATISTICS_SERVICE_H_ 2 #define __XRD_STATISTICS_SERVICE_H_ 21 class CondorStatusService;
28 class XrdReadStatistics;
29 class XrdSiteStatistics;
48 std::vector<std::pair<std::string, CondorIOStats>>
condorUpdate()
final;
62 static std::atomic<XrdSiteStatisticsInformation *>
m_instance;
64 std::vector<edm::propagate_const<std::shared_ptr<XrdSiteStatistics>>>
m_sites;
81 static std::shared_ptr<XrdReadStatistics>
startRead(std::shared_ptr<XrdSiteStatistics>
parent,
82 std::shared_ptr<ClientRequest> req);
121 std::chrono::time_point<std::chrono::high_resolution_clock>
m_start;
std::chrono::nanoseconds getTotalReadTime()
std::string const & site() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
XrdReadStatistics(const XrdReadStatistics &)=delete
boost::date_time::subsecond_duration< boost::posix_time::time_duration, 1000000000 > nanoseconds
std::vector< std::pair< std::string, CondorIOStats > > condorUpdate() final
std::atomic< unsigned > m_readCount
XrdReadStatistics & operator=(const XrdReadStatistics &)=delete
uint64_t elapsedNS() const
void finishRead(XrdReadStatistics const &)
std::atomic< uint64_t > m_readvSize
XrdSiteStatistics(std::string const &site)
void recomputeProperties(std::map< std::string, std::string > &props)
static std::shared_ptr< XrdReadStatistics > startRead(std::shared_ptr< XrdSiteStatistics > parent, std::shared_ptr< ClientRequest > req)
edm::storage::IOSize m_count
std::atomic< unsigned > m_readvCount
XrdStatisticsService(const edm::ParameterSet &iPS, edm::ActivityRegistry &iRegistry)
edm::propagate_const< std::shared_ptr< XrdSiteStatistics > > m_parent
uint64_t getTotalBytes() const
XrdSiteStatistics & operator=(const XrdSiteStatistics &)=delete
std::atomic< uint64_t > m_readvNS
std::atomic< uint64_t > m_readNS
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
unsigned long long uint64_t
std::atomic< uint64_t > m_readSize
std::atomic< unsigned > m_chunkCount