]>
Commit | Line | Data |
---|---|---|
a6c02c85 | 1 | // @(#) $Id$ |
c2f37813 | 2 | // Original: AliL3Benchmark.h,v 1.6 2004/06/26 11:39:40 loizides |
a6c02c85 | 3 | |
4 | #ifndef AliHLTTPCBenchmarkH | |
5 | #define AliHLTTPCBenchmarkH | |
6 | ||
7 | //_____________________________________________________________ | |
8 | // | |
9 | // AliHLTTPCBenchmark | |
10 | // | |
11 | // Benchmark class for level3 code | |
12 | // | |
13 | // | |
14 | ||
15 | #ifndef no_root | |
16 | class TStopwatch; | |
17 | class TString; | |
18 | #else | |
19 | class AliHLTTPCStopwatch; | |
20 | #endif | |
21 | ||
22 | class AliHLTTPCBenchmark { | |
23 | ||
24 | public: | |
25 | AliHLTTPCBenchmark(); | |
26 | virtual ~AliHLTTPCBenchmark(); | |
27 | Int_t GetBench(const char *name); | |
28 | void Start(const char *name); | |
29 | void Stop(const char *name); | |
30 | void Analyze(const char* name); | |
31 | ||
32 | static Double_t GetCpuTime(); | |
33 | ||
34 | private: | |
35 | ||
36 | Int_t fNbench; //Number of active benchmarks | |
37 | Int_t fNmax; //Maximum number of benchmarks initialized | |
38 | #ifndef no_root | |
39 | TString *fNames; //Names of benchmarks | |
40 | TStopwatch *fTimer; //Timers | |
41 | #else | |
42 | Char_t **fNames; //Names of benchmarks | |
43 | AliHLTTPCStopwatch *fTimer; //Timers | |
44 | #endif | |
45 | Float_t *fSum; //sum of time | |
46 | Float_t *fMin; //min of time | |
47 | Float_t *fMax; //max of time | |
48 | Int_t *fCount;// counter | |
49 | ||
50 | ClassDef(AliHLTTPCBenchmark,0) //HLTTPC benchmark | |
51 | }; | |
52 | ||
53 | #endif |