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 56 of file XrdPfcInfo.hh.

Constructor & Destructor Documentation

◆ AStat()

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

Definition at line 68 of file XrdPfcInfo.hh.

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

Member Function Documentation

◆ MergeWith()

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

Definition at line 366 of file XrdPfcInfo.cc.

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

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 66 of file XrdPfcInfo.hh.

Referenced by MergeWith().

◆ BytesHit

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

read from cache

Definition at line 64 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 65 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 61 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 60 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 62 of file XrdPfcInfo.hh.

Referenced by MergeWith().

◆ Reserved

int XrdPfc::Info::AStat::Reserved

reserved / alignment

Definition at line 63 of file XrdPfcInfo.hh.


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