improve profiler

This commit is contained in:
Irlan
2019-04-01 11:03:12 -03:00
parent 3f55504a91
commit f195e77be7
8 changed files with 133 additions and 162 deletions

View File

@ -20,7 +20,15 @@
#define MODEL_H
#include <testbed/framework/draw.h>
#include <testbed/framework/testbed_profiler.h>
#include <testbed/framework/profiler.h>
#include <testbed/framework/recorder_profiler.h>
// Set to 1 to write profile events into a .json file. Set to 0 otherwise.
#define PROFILE_JSON 1
#if (PROFILE_JSON == 1)
#include <testbed\framework\json_profiler.h>
#endif
class Test;
@ -63,7 +71,12 @@ private:
Draw m_draw;
Camera m_camera;
Profiler m_profiler;
TestbedProfiler m_profilerListener;
RecorderProfiler m_recorderProfiler;
#if (PROFILE_JSON == 1)
JsonProfiler m_jsonListener;
#endif
Test* m_test;
bool m_setTest;
bool m_pause;