This commit is contained in:
Irlan
2019-03-30 10:48:24 -03:00
parent 4984fa2a2e
commit 812ee84d7e
8 changed files with 69 additions and 67 deletions

View File

@ -25,9 +25,9 @@
// An event in the profiler event recorder.
struct ProfilerRecord
{
const char* name;
float64 elapsed;
float64 maxElapsed;
const char* name;
u32 call;
};
@ -43,10 +43,12 @@ public:
void Add(const char* name, float64 elapsedTime);
ProfilerRecord* FindRecord(const char* name);
const b3Array<ProfilerRecord>& GetRecords() const { return m_records; }
private:
b3StackArray<ProfilerRecord, 256> m_records;
u32 m_count;
b3StackArray<ProfilerRecord, 256> m_records; // persistent records sorted by call order
u32 m_call;
};
extern RecorderProfiler* g_profilerRecorder;