I’m checking the code. Why we use array instead of something like hashmap? Array is O(n) while hashmap can be regard of almost O(1)
/// Return child block with the specified name.
ProfilerBlock* GetChild(const char* name)
{
for (PODVector<ProfilerBlock*>::Iterator i = children_.Begin(); i != children_.End(); ++i)
{
if (!String::Compare((*i)->name_, name, true))
return *i;
}
auto* newBlock = new ProfilerBlock(this, name);
children_.Push(newBlock);
return newBlock;
}