00001 #ifndef PROFILERINTERFACE_H
00002 #define PROFILERINTERFACE_H
00003
00004 #ifdef RT_PROFILER
00005
00006 #include "Types.h"
00007 #include "Profiler.h"
00008
00009 namespace RenderTools{
00010
00011 class ProfilerInterface {
00012 public:
00013
00014 void beginProfiler( string name, string file = "", int line = 0 );
00015 void endProfiler( string name );
00016 const map< string, Profiler * > & getProfilers();
00017
00018 #endif
00019
00020 private:
00021 map<string, Profiler *> m_profilers;
00022 };
00023
00024 };
00025
00026 #endif // RT_PROFILER
00027
00028 #endif