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:
Irlan
2019-04-06 18:06:20 -03:00
parent ff535f9f7b
commit 1ef6d46d33
13 changed files with 381 additions and 205 deletions

View File

@ -127,12 +127,13 @@ void Profiler::End()
listener->BeginEvents();
}
RecurseEvents(m_root);
RecurseDestroyNode(m_root);
m_root = nullptr;
if (m_root)
{
RecurseEvents(m_root);
assert(m_root == nullptr);
RecurseDestroyNode(m_root);
m_root = nullptr;
}
if (listener)
{