Profiler.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifdef PROFILE // probably unnecessary - this header file won't be
00008
00009
00010
00011 #ifndef PROFILER_DEFINED
00012 #define PROFILER_DEFINED
00013
00014 #include "String.h"
00015
00016 #include "Timer.h"
00017
00018
00019 class Profiler
00020 {
00021 public:
00022 Profiler(String const & name);
00023 ~Profiler() {};
00024
00025 void runTimer();
00026 void pauseTimer();
00027 void registerActiveListSize(unsigned long size);
00028 void outputResults();
00029
00030 private:
00031 Timer timer;
00032
00033 unsigned long maxActiveListSize;
00034 unsigned long long numActiveListHits;
00035 unsigned long long sumActiveListSize;
00036 unsigned long maxTestSize;
00037 unsigned long long numTestHits;
00038 unsigned long long sumTestSize;
00039
00040 Profiler(Profiler const &);
00041 Profiler & operator=(Profiler const &);
00042 };
00043
00044 #endif // ifndef PROFILER_DEFINED
00045
00046 #endif // ifdef PROFILE