XRootD
Loading...
Searching...
No Matches
XrdCl::ActionMetrics::synchronicity_t Struct Reference

#include <XrdClActionMetrics.hh>

Collaboration diagram for XrdCl::ActionMetrics::synchronicity_t:

Public Member Functions

double ReadSynchronicity () const
double WriteSynchronicity () const

Public Attributes

std::vector< double > reads
std::vector< double > writes

Detailed Description

Definition at line 304 of file XrdClActionMetrics.hh.

Member Function Documentation

◆ ReadSynchronicity()

double XrdCl::ActionMetrics::synchronicity_t::ReadSynchronicity ( ) const
inline

Definition at line 309 of file XrdClActionMetrics.hh.

310 {
311 if (reads.size())
312 {
313 return accumulate(reads.begin(), reads.end(), 0.0) / reads.size();
314 }
315 else
316 {
317 return 0;
318 }
319 }

References reads.

Referenced by main().

Here is the caller graph for this function:

◆ WriteSynchronicity()

double XrdCl::ActionMetrics::synchronicity_t::WriteSynchronicity ( ) const
inline

Definition at line 321 of file XrdClActionMetrics.hh.

322 {
323 if (writes.size())
324 {
325 return accumulate(writes.begin(), writes.end(), 0.0) / writes.size();
326 }
327 else
328 {
329 return 0;
330 }
331 }

References writes.

Referenced by main().

Here is the caller graph for this function:

Member Data Documentation

◆ reads

std::vector<double> XrdCl::ActionMetrics::synchronicity_t::reads

Definition at line 306 of file XrdClActionMetrics.hh.

Referenced by ReadSynchronicity().

◆ writes

std::vector<double> XrdCl::ActionMetrics::synchronicity_t::writes

Definition at line 307 of file XrdClActionMetrics.hh.

Referenced by WriteSynchronicity().


The documentation for this struct was generated from the following file: