3 #ifndef AliHLTBenchmarkH
4 #define AliHLTBenchmarkH
6 //_____________________________________________________________
10 // Benchmark class for level3 code
18 class AliHLTStopwatch;
21 class AliHLTBenchmark {
25 virtual ~AliHLTBenchmark();
26 Int_t GetBench(const char *name);
27 void Start(const char *name);
28 void Stop(const char *name);
29 void Analyze(const char* name);
31 static Double_t GetCpuTime();
35 Int_t fNbench; //Number of active benchmarks
36 Int_t fNmax; //Maximum number of benchmarks initialized
38 TString *fNames; //Names of benchmarks
39 TStopwatch *fTimer; //Timers
41 Char_t **fNames; //Names of benchmarks
42 AliHLTStopwatch *fTimer; //Timers
44 Float_t *fSum; //sum of time
45 Float_t *fMin; //min of time
46 Float_t *fMax; //max of time
47 Int_t *fCount;// counter
49 ClassDef(AliHLTBenchmark,0) //L3 benchmark
52 typedef AliHLTBenchmark AliL3Benchmark; // for backward compatibility