2 // Original: AliL3Benchmark.h,v 1.6 2004/06/26 11:39:40 loizides
4 #ifndef AliHLTTPCBenchmarkH
5 #define AliHLTTPCBenchmarkH
7 //_____________________________________________________________
11 // Benchmark class for level3 code
19 class AliHLTTPCStopwatch;
21 #include "AliHLTLogging.h"
23 class AliHLTTPCBenchmark : public AliHLTLogging {
26 /** standard constructor */
28 /** not a valid copy constructor, defined according to effective C++ style */
29 AliHLTTPCBenchmark(const AliHLTTPCBenchmark&);
30 /** not a valid assignment op, but defined according to effective C++ style */
31 AliHLTTPCBenchmark& operator=(const AliHLTTPCBenchmark&);
33 virtual ~AliHLTTPCBenchmark();
34 Int_t GetBench(const Char_t *name);
35 void Start(const Char_t *name);
36 void Stop(const char *name);
37 void Analyze(const Char_t* name);
39 static Double_t GetCpuTime();
43 Int_t fNbench; //Number of active benchmarks
44 Int_t fNmax; //Maximum number of benchmarks initialized
46 TString *fNames; //Names of benchmarks
47 TStopwatch *fTimer; //Timers
49 Char_t **fNames; //Names of benchmarks
50 AliHLTTPCStopwatch *fTimer; //Timers
52 Float_t *fSum; //sum of time
53 Float_t *fMin; //min of time
54 Float_t *fMax; //max of time
55 Int_t *fCount;// counter
57 ClassDef(AliHLTTPCBenchmark,0) //HLTTPC benchmark