Add a statistical profiler. Also applied a bugfix b3Profiler.
- This is a compact hierarchical profiler which also stores node statistics - Might need to use a hash-table to lookup statistic for node because each frame trees are build
This commit is contained in:
		| @@ -18,6 +18,7 @@ | ||||
|  | ||||
| #include <testbed/framework/test.h> | ||||
| #include <testbed/framework/profiler.h> | ||||
| #include <testbed/framework/profiler_st.h> | ||||
|  | ||||
| extern u32 b3_allocCalls, b3_maxAllocCalls; | ||||
| extern u32 b3_convexCalls, b3_convexCacheHits; | ||||
| @@ -27,11 +28,13 @@ extern bool b3_convexCache; | ||||
| void b3BeginProfileScope(const char* name) | ||||
| { | ||||
| 	g_profiler->BeginScope(name); | ||||
| 	g_profilerSt->BeginScope(name); | ||||
| } | ||||
|  | ||||
| void b3EndProfileScope() | ||||
| { | ||||
| 	g_profiler->EndScope(); | ||||
| 	g_profilerSt->EndScope(); | ||||
| } | ||||
|  | ||||
| Test::Test() :  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user