12 #ifndef ROOT_TPerfStats
13 #define ROOT_TPerfStats
39 class TPerfEvent :
public TObject {
43 TTimeStamp fTimeStamp;
44 TVirtualPerfStats::EEventType fType;
50 Long64_t fEventsProcessed;
59 TPerfEvent(TTimeStamp *offset = 0);
60 virtual ~TPerfEvent() {}
62 Bool_t IsSortable()
const {
return kTRUE; }
63 Int_t Compare(
const TObject *obj)
const;
64 void Print(Option_t *option=
"")
const;
66 ClassDef(TPerfEvent,3)
70 class TPerfStats :
public TVirtualPerfStats {
72 friend class TProofMonSender;
77 TPerfEvent *fPerfEvent;
87 Long64_t fTotBytesRead;
98 Bool_t fMonitorPerPacket;
100 TObjArray fMonSenders;
108 static Long_t fgVirtMemMax;
109 static Long_t fgResMemMax;
111 TPerfStats(TList *input, TList *output);
112 void WriteQueryLog();
115 virtual ~TPerfStats();
117 void SimpleEvent(EEventType type);
118 void PacketEvent(
const char *slave,
const char *slavename,
const char *filename,
119 Long64_t eventsprocessed, Double_t latency,
120 Double_t proctime, Double_t cputime, Long64_t bytesRead);
121 void FileEvent(
const char *slave,
const char *slavename,
const char *nodename,
const char *filename,
124 void FileOpenEvent(TFile *file,
const char *filename, Double_t start);
125 void FileReadEvent(TFile *file, Int_t len, Double_t start);
126 void UnzipEvent(TObject *tree, Long64_t pos, Double_t start, Int_t complen, Int_t objlen);
127 void RateEvent(Double_t proctime, Double_t deltatime,
128 Long64_t eventsprocessed, Long64_t bytesRead);
129 void SetBytesRead(Long64_t num);
130 Long64_t GetBytesRead()
const;
131 void SetNumEvents(Long64_t num) { fNumEvents = num; }
132 Long64_t GetNumEvents()
const {
return fNumEvents; }
134 void PrintBasketInfo(Option_t * =
"")
const {}
135 void SetLoaded(TBranch *,
size_t) {}
136 void SetLoaded(
size_t,
size_t) {}
137 void SetLoadedMiss(TBranch *,
size_t) {}
138 void SetLoadedMiss(
size_t,
size_t) {}
139 void SetMissed(TBranch *,
size_t) {}
140 void SetMissed(
size_t,
size_t) {}
141 void SetUsed(TBranch *,
size_t) {}
142 void SetUsed(
size_t,
size_t) {}
143 void UpdateBranchIndices(TObjArray *) {}
145 static void Start(TList *input, TList *output);
147 static void Setup(TList *input);
148 static void SetMemValues();
149 static void GetMemValues(Long_t &vmax, Long_t &rmax);
151 ClassDef(TPerfStats,0)