bugfix
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user