diff --git a/examples/testbed/framework/profiler.cpp b/examples/testbed/framework/profiler.cpp index 579c968..fd50f61 100644 --- a/examples/testbed/framework/profiler.cpp +++ b/examples/testbed/framework/profiler.cpp @@ -46,7 +46,7 @@ void Profiler::DestroyNode(ProfilerNode* node) m_pool.Free(node); } -void Profiler::PushEvent(const char* name) +void Profiler::BeginScope(const char* name) { m_time.Update(); @@ -71,7 +71,7 @@ void Profiler::PushEvent(const char* name) m_top = n; } -void Profiler::PopEvent() +void Profiler::EndScope() { m_time.Update(); diff --git a/examples/testbed/framework/profiler.h b/examples/testbed/framework/profiler.h index 18f2a96..004f878 100644 --- a/examples/testbed/framework/profiler.h +++ b/examples/testbed/framework/profiler.h @@ -53,11 +53,11 @@ public: // This function also flushes the profiler. void End(); - // Push an event. - void PushEvent(const char* name); + // Begin a new scope. + void BeginScope(const char* name); - // Remove the top profiler event. - void PopEvent(); + // End the top scope. + void EndScope(); private: ProfilerNode* CreateNode(); void DestroyNode(ProfilerNode* node); diff --git a/examples/testbed/framework/test.cpp b/examples/testbed/framework/test.cpp index 3b83bb6..f5779aa 100644 --- a/examples/testbed/framework/test.cpp +++ b/examples/testbed/framework/test.cpp @@ -26,12 +26,12 @@ extern bool b3_convexCache; void b3BeginProfileScope(const char* name) { - g_profiler->PushEvent(name); + g_profiler->BeginScope(name); } void b3EndProfileScope() { - g_profiler->PopEvent(); + g_profiler->EndScope(); } Test::Test() :