Removed profiler listener

This commit is contained in:
Irlan
2019-04-08 13:53:35 -03:00
parent 7ed4166f0c
commit 6aa677e133
7 changed files with 54 additions and 77 deletions

View File

@ -24,8 +24,6 @@
#include <bounce/common/template/array.h>
#include <bounce/common/time.h>
class ProfilerListener;
// Profiler node
struct ProfilerNode
{
@ -75,33 +73,4 @@ private:
extern Profiler* g_profiler;
// Any implementation of this interface passed to Profiler::End will listen to profile events.
class ProfilerListener
{
public:
virtual ~ProfilerListener() { }
// This function is called when profiling has began.
virtual void BeginEvents() { }
// This function is called when profiling has ended.
virtual void EndEvents() { }
// This function is called when a profiler event begins.
virtual void BeginEvent(const char* name, float64 time)
{
B3_NOT_USED(name);
B3_NOT_USED(time);
}
// This function is called when a profiler event ends.
virtual void EndEvent(const char* name, float64 time)
{
B3_NOT_USED(name);
B3_NOT_USED(time);
}
};
extern ProfilerListener* g_profilerListener;
#endif