XRootD
Loading...
Searching...
No Matches
XrdXrootdFileStats Class Reference

#include <XrdXrootdFileStats.hh>

Collaboration diagram for XrdXrootdFileStats:

Public Types

enum  monLevel {
  monOff = 0 ,
  monOn = 1 ,
  monOps = 2 ,
  monSsq = 3
}

Public Member Functions

 XrdXrootdFileStats ()
 ~XrdXrootdFileStats ()
void Init ()
void pgrOps (int rsz, bool isRetry=false)
void pgUpdt (int wErrs, int wFixd, int wUnc)
void pgwOps (int wsz, bool isRetry=false)
void rdOps (int rsz)
void rvOps (int rsz, int ssz)
void wrOps (int wsz)
void wvOps (int wsz, int ssz)

Public Attributes

kXR_unt32 FileID
long long fSize
short MonEnt
char monLvl
XrdXrootdMonStatOPS ops
XrdXrootdMonStatPRW prw
struct { 
double read
double readv
double rsegs
double write
ssq
XrdXrootdMonStatXFR xfr
char xfrXeq

Detailed Description

Definition at line 35 of file XrdXrootdFileStats.hh.

Member Enumeration Documentation

◆ monLevel

Enumerator
monOff 
monOn 
monOps 
monSsq 

Definition at line 53 of file XrdXrootdFileStats.hh.

Constructor & Destructor Documentation

◆ XrdXrootdFileStats()

XrdXrootdFileStats::XrdXrootdFileStats ( )
inline

Definition at line 154 of file XrdXrootdFileStats.hh.

References Init().

Here is the call graph for this function:

◆ ~XrdXrootdFileStats()

XrdXrootdFileStats::~XrdXrootdFileStats ( )
inline

Definition at line 155 of file XrdXrootdFileStats.hh.

155{}

Member Function Documentation

◆ Init()

void XrdXrootdFileStats::Init ( )
inline

Definition at line 55 of file XrdXrootdFileStats.hh.

56 {FileID = 0; MonEnt = -1; monLvl = xfrXeq = 0;
57 memset(&xfr, 0, sizeof(xfr));
58 memset(&ops, 0, sizeof(ops));
59 memset(&prw, 0, sizeof(prw));
60 ops.rsMin = 0x7fff;
61 ops.rdMin = ops.rvMin = ops.wrMin = 0x7fffffff;
62 ssq.read = ssq.readv = ssq.write = ssq.rsegs = 0.0;
63 };
XrdXrootdMonStatPRW prw
struct XrdXrootdFileStats::@134143131021232201261001370045223101060160247031 ssq
XrdXrootdMonStatXFR xfr
XrdXrootdMonStatOPS ops

References FileID, MonEnt, monLvl, ops, prw, ssq, xfr, and xfrXeq.

Referenced by XrdXrootdFileStats().

Here is the caller graph for this function:

◆ pgrOps()

void XrdXrootdFileStats::pgrOps ( int rsz,
bool isRetry = false )
inline

Definition at line 65 of file XrdXrootdFileStats.hh.

66 {if (monLvl)
67 {prw.rBytes += rsz;
68 prw.rCount++;
69 if(isRetry) prw.rRetry++;
70 }
71 }

References monLvl, and prw.

◆ pgUpdt()

void XrdXrootdFileStats::pgUpdt ( int wErrs,
int wFixd,
int wUnc )
inline

Definition at line 81 of file XrdXrootdFileStats.hh.

82 {if (monLvl)
83 {prw.wcsErr = wErrs;
84 prw.wRetry = wFixd;
85 prw.wcsUnc = wUnc;
86 }
87 }

References monLvl, and prw.

◆ pgwOps()

void XrdXrootdFileStats::pgwOps ( int wsz,
bool isRetry = false )
inline

Definition at line 73 of file XrdXrootdFileStats.hh.

74 {if (monLvl)
75 {prw.wBytes += wsz;
76 prw.wCount++;
77 if(isRetry) prw.wRetry++;
78 }
79 }

References monLvl, and prw.

◆ rdOps()

void XrdXrootdFileStats::rdOps ( int rsz)
inline

Definition at line 89 of file XrdXrootdFileStats.hh.

90 {if (monLvl)
91 {xfr.read += rsz; ops.read++; xfrXeq = 1;
92 if (monLvl > 1)
93 {if (rsz < ops.rdMin) ops.rdMin = rsz;
94 if (rsz > ops.rdMax) ops.rdMax = rsz;
95 if (monLvl > 2)
96 ssq.read += static_cast<double>(rsz)
97 * static_cast<double>(rsz);
98 }
99 }
100 }

References monLvl, ops, ssq, xfr, and xfrXeq.

◆ rvOps()

void XrdXrootdFileStats::rvOps ( int rsz,
int ssz )
inline

Definition at line 102 of file XrdXrootdFileStats.hh.

103 {if (monLvl)
104 {xfr.readv += rsz; ops.readv++; ops.rsegs += ssz; xfrXeq=1;
105 if (monLvl > 1)
106 {if (rsz < ops.rvMin) ops.rvMin = rsz;
107 if (rsz > ops.rvMax) ops.rvMax = rsz;
108 if (ssz < ops.rsMin) ops.rsMin = ssz;
109 if (ssz > ops.rsMax) ops.rsMax = ssz;
110 if (monLvl > 2)
111 {ssq.readv += static_cast<double>(rsz)
112 * static_cast<double>(rsz);
113 ssq.rsegs += static_cast<double>(ssz)
114 * static_cast<double>(ssz);
115 }
116 }
117 }
118 }

References monLvl, ops, ssq, xfr, and xfrXeq.

◆ wrOps()

void XrdXrootdFileStats::wrOps ( int wsz)
inline

Definition at line 120 of file XrdXrootdFileStats.hh.

121 {if (monLvl)
122 {xfr.write += wsz; ops.write++; xfrXeq = 1;
123 if (monLvl > 1)
124 {if (wsz < ops.wrMin) ops.wrMin = wsz;
125 if (wsz > ops.wrMax) ops.wrMax = wsz;
126 if (monLvl > 2)
127 ssq.write += static_cast<double>(wsz)
128 * static_cast<double>(wsz);
129 }
130 }
131 }

References monLvl, ops, ssq, xfr, and xfrXeq.

Referenced by wvOps().

Here is the caller graph for this function:

◆ wvOps()

void XrdXrootdFileStats::wvOps ( int wsz,
int ssz )
inline

Definition at line 133 of file XrdXrootdFileStats.hh.

133{wrOps(wsz);}

References wrOps().

Here is the call graph for this function:

Member Data Documentation

◆ FileID

kXR_unt32 XrdXrootdFileStats::FileID

Definition at line 39 of file XrdXrootdFileStats.hh.

Referenced by XrdXrootdMonFile::Close(), Init(), and XrdXrootdMonFile::Open().

◆ fSize

long long XrdXrootdFileStats::fSize

Definition at line 43 of file XrdXrootdFileStats.hh.

Referenced by XrdXrootdMonFile::Open().

◆ MonEnt

short XrdXrootdFileStats::MonEnt

Definition at line 40 of file XrdXrootdFileStats.hh.

Referenced by XrdXrootdMonFile::Close(), Init(), and XrdXrootdMonFile::Open().

◆ monLvl

char XrdXrootdFileStats::monLvl

◆ ops

XrdXrootdMonStatOPS XrdXrootdFileStats::ops

Definition at line 45 of file XrdXrootdFileStats.hh.

Referenced by XrdXrootdMonFile::Close(), Init(), rdOps(), rvOps(), and wrOps().

◆ prw

XrdXrootdMonStatPRW XrdXrootdFileStats::prw

Definition at line 46 of file XrdXrootdFileStats.hh.

Referenced by Init(), pgrOps(), pgUpdt(), and pgwOps().

◆ [struct]

struct { ... } XrdXrootdFileStats::ssq

◆ xfr

XrdXrootdMonStatXFR XrdXrootdFileStats::xfr

Definition at line 44 of file XrdXrootdFileStats.hh.

Referenced by XrdXrootdMonFile::Close(), Init(), rdOps(), rvOps(), and wrOps().

◆ xfrXeq

char XrdXrootdFileStats::xfrXeq

Definition at line 42 of file XrdXrootdFileStats.hh.

Referenced by Init(), XrdXrootdMonFile::Open(), rdOps(), rvOps(), and wrOps().


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