XRootD
XrdPfc::Info::AStat Struct Reference

Access statistics. More...

#include <XrdPfcInfo.hh>

+ Collaboration diagram for XrdPfc::Info::AStat:

Public Member Functions

 AStat ()
 
void MergeWith (const AStat &a)
 

Public Attributes

time_t AttachTime
 open time More...
 
long long BytesBypassed
 read from remote and dropped More...
 
long long BytesHit
 read from cache More...
 
long long BytesMissed
 read from remote and cached More...
 
time_t DetachTime
 close time More...
 
int Duration
 total duration of all IOs attached More...
 
int NumIos
 number of IO objects attached during this access More...
 
int NumMerged
 number of times the record has been merged More...
 
int Reserved
 reserved / alignment More...
 

Detailed Description

Access statistics.

Definition at line 60 of file XrdPfcInfo.hh.

Constructor & Destructor Documentation

◆ AStat()

XrdPfc::Info::AStat::AStat ( )
inline

Definition at line 72 of file XrdPfcInfo.hh.

72  :
73  AttachTime(0), DetachTime(0), NumIos(0), Duration(0), NumMerged(0), Reserved(0),
75  {}
long long BytesHit
read from cache
Definition: XrdPfcInfo.hh:68
long long BytesBypassed
read from remote and dropped
Definition: XrdPfcInfo.hh:70
int Duration
total duration of all IOs attached
Definition: XrdPfcInfo.hh:65
int Reserved
reserved / alignment
Definition: XrdPfcInfo.hh:67
int NumIos
number of IO objects attached during this access
Definition: XrdPfcInfo.hh:64
time_t DetachTime
close time
Definition: XrdPfcInfo.hh:63
long long BytesMissed
read from remote and cached
Definition: XrdPfcInfo.hh:69
time_t AttachTime
open time
Definition: XrdPfcInfo.hh:62
int NumMerged
number of times the record has been merged
Definition: XrdPfcInfo.hh:66

Member Function Documentation

◆ MergeWith()

void Info::AStat::MergeWith ( const AStat a)

Definition at line 368 of file XrdPfcInfo.cc.

369 {
370  // Access in b assumed to happen after the one in this.
371 
372  DetachTime = b.DetachTime;
373  NumIos += b.NumIos;
374  Duration += b.Duration;
375  NumMerged += b.NumMerged + 1;
376  BytesHit += b.BytesHit;
377  BytesMissed += b.BytesMissed;
378  BytesBypassed += b.BytesBypassed;
379 }

References BytesBypassed, BytesHit, BytesMissed, DetachTime, Duration, NumIos, and NumMerged.

Member Data Documentation

◆ AttachTime

time_t XrdPfc::Info::AStat::AttachTime

◆ BytesBypassed

long long XrdPfc::Info::AStat::BytesBypassed

read from remote and dropped

Definition at line 70 of file XrdPfcInfo.hh.

Referenced by MergeWith().

◆ BytesHit

long long XrdPfc::Info::AStat::BytesHit

read from cache

Definition at line 68 of file XrdPfcInfo.hh.

Referenced by MergeWith(), and XrdPfc::Info::WriteIOStatSingle().

◆ BytesMissed

long long XrdPfc::Info::AStat::BytesMissed

read from remote and cached

Definition at line 69 of file XrdPfcInfo.hh.

Referenced by MergeWith().

◆ DetachTime

time_t XrdPfc::Info::AStat::DetachTime

◆ Duration

int XrdPfc::Info::AStat::Duration

total duration of all IOs attached

Definition at line 65 of file XrdPfcInfo.hh.

Referenced by XrdPfc::Info::GetLatestDetachTime(), MergeWith(), and XrdPfc::Info::WriteIOStatSingle().

◆ NumIos

int XrdPfc::Info::AStat::NumIos

number of IO objects attached during this access

Definition at line 64 of file XrdPfcInfo.hh.

Referenced by MergeWith(), and XrdPfc::Info::WriteIOStatSingle().

◆ NumMerged

int XrdPfc::Info::AStat::NumMerged

number of times the record has been merged

Definition at line 66 of file XrdPfcInfo.hh.

Referenced by MergeWith().

◆ Reserved

int XrdPfc::Info::AStat::Reserved

reserved / alignment

Definition at line 67 of file XrdPfcInfo.hh.


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