rename
This commit is contained in:
parent
725ca3ce31
commit
fb895192e7
@ -46,7 +46,7 @@ void Profiler::DestroyNode(ProfilerNode* node)
|
|||||||
m_pool.Free(node);
|
m_pool.Free(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Profiler::PushEvent(const char* name)
|
void Profiler::BeginScope(const char* name)
|
||||||
{
|
{
|
||||||
m_time.Update();
|
m_time.Update();
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ void Profiler::PushEvent(const char* name)
|
|||||||
m_top = n;
|
m_top = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Profiler::PopEvent()
|
void Profiler::EndScope()
|
||||||
{
|
{
|
||||||
m_time.Update();
|
m_time.Update();
|
||||||
|
|
||||||
|
@ -53,11 +53,11 @@ public:
|
|||||||
// This function also flushes the profiler.
|
// This function also flushes the profiler.
|
||||||
void End();
|
void End();
|
||||||
|
|
||||||
// Push an event.
|
// Begin a new scope.
|
||||||
void PushEvent(const char* name);
|
void BeginScope(const char* name);
|
||||||
|
|
||||||
// Remove the top profiler event.
|
// End the top scope.
|
||||||
void PopEvent();
|
void EndScope();
|
||||||
private:
|
private:
|
||||||
ProfilerNode* CreateNode();
|
ProfilerNode* CreateNode();
|
||||||
void DestroyNode(ProfilerNode* node);
|
void DestroyNode(ProfilerNode* node);
|
||||||
|
@ -26,12 +26,12 @@ extern bool b3_convexCache;
|
|||||||
|
|
||||||
void b3BeginProfileScope(const char* name)
|
void b3BeginProfileScope(const char* name)
|
||||||
{
|
{
|
||||||
g_profiler->PushEvent(name);
|
g_profiler->BeginScope(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void b3EndProfileScope()
|
void b3EndProfileScope()
|
||||||
{
|
{
|
||||||
g_profiler->PopEvent();
|
g_profiler->EndScope();
|
||||||
}
|
}
|
||||||
|
|
||||||
Test::Test() :
|
Test::Test() :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user