removed a couple of bugs in the profiler

This commit is contained in:
Irlan
2018-10-07 20:48:26 -03:00
parent c0e324c988
commit b48b16843a
8 changed files with 60 additions and 34 deletions

View File

@ -28,6 +28,7 @@ struct ProfilerRecord
float64 elapsed;
float64 maxElapsed;
const char* name;
u32 call;
};
// The profiler recorder simply keeps profile events in an event buffer,
@ -45,6 +46,7 @@ public:
const b3Array<ProfilerRecord>& GetRecords() const { return m_records; }
private:
b3StackArray<ProfilerRecord, 256> m_records;
u32 m_count;
};
extern RecorderProfiler* g_profilerRecorder;