]>
Commit | Line | Data |
---|---|---|
108615fc | 1 | #ifndef AliL3_Benchmark |
2 | #define AliL3_Benchmark | |
3 | ||
4 | #include <Rtypes.h> | |
5 | ||
6 | class TStopwatch; | |
7 | class TString; | |
8 | class AliL3Benchmark { | |
9 | ||
10 | private: | |
11 | ||
12 | Int_t fNbench; //Number of active benchmarks | |
13 | Int_t fNmax; //Maximum number of benchmarks initialized | |
14 | TString *fNames; //Names of benchmarks | |
15 | TStopwatch *fTimer; //Timers | |
16 | Float_t *fSum; | |
17 | Float_t *fMin; | |
18 | Float_t *fMax; | |
19 | Int_t *fCount; | |
20 | ||
21 | // TStopwatch *fStopwatch; //Stopwatch | |
22 | public: | |
23 | AliL3Benchmark(); | |
24 | virtual ~AliL3Benchmark(); | |
25 | Int_t GetBench(const char *name); | |
26 | void Start(const char *name); | |
27 | void Stop(const char *name); | |
28 | void Analyze(const char* name); | |
0c547964 | 29 | |
30 | static Double_t GetCpuTime(); | |
31 | ||
108615fc | 32 | ClassDef(AliL3Benchmark,0) //L3 benchmark |
33 | }; | |
34 | ||
35 | #endif |