#ifndef ROOT_TVirtualPerfStats
#define ROOT_TVirtualPerfStats
#ifndef ROOT_TObject
#include "TObject.h"
#endif
class TFile;
class TVirtualPerfStats : public TObject {
public:
virtual ~TVirtualPerfStats() {}
enum EEventType {
kUnDefined,
kPacket,
kStart,
kStop,
kFile,
kFileOpen,
kFileRead,
kRate,
kNumEventType
};
static TVirtualPerfStats *&CurrentPerfStats();
virtual void SimpleEvent(EEventType type) = 0;
virtual void PacketEvent(const char *slave, const char *slavename, const char *filename,
Long64_t eventsprocessed, Double_t latency,
Double_t proctime, Double_t cputime,
Long64_t bytesRead) = 0;
virtual void FileEvent(const char *slave, const char *slavename, const char *nodename,
const char *filename, Bool_t isStart) = 0;
virtual void FileOpenEvent(TFile *file, const char *filename, Double_t start) = 0;
virtual void FileReadEvent(TFile *file, Int_t len, Double_t start) = 0;
virtual void UnzipEvent(TObject *tree, Long64_t pos, Double_t start, Int_t complen, Int_t objlen) = 0;
virtual void RateEvent(Double_t proctime, Double_t deltatime,
Long64_t eventsprocessed, Long64_t bytesRead) = 0;
virtual void SetBytesRead(Long64_t num) = 0;
virtual Long64_t GetBytesRead() const = 0;
virtual void SetNumEvents(Long64_t num) = 0;
virtual Long64_t GetNumEvents() const = 0;
static const char *EventType(EEventType type);
ClassDef(TVirtualPerfStats,0)
};
#ifndef __CINT__
#define gPerfStats (TVirtualPerfStats::CurrentPerfStats())
#elif defined(__MAKECINT__)
R__EXTERN TVirtualPerfStats *gPerfStats;
#endif
#endif