use assert instead of B3_ASSERT
This commit is contained in:
parent
1c99a10536
commit
3f55504a91
@ -29,8 +29,8 @@ Profiler::Profiler() : m_pool(sizeof(ProfilerNode))
|
|||||||
|
|
||||||
Profiler::~Profiler()
|
Profiler::~Profiler()
|
||||||
{
|
{
|
||||||
B3_ASSERT(m_root == nullptr);
|
assert(m_root == nullptr);
|
||||||
B3_ASSERT(m_top == nullptr);
|
assert(m_top == nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfilerNode* Profiler::CreateNode()
|
ProfilerNode* Profiler::CreateNode()
|
||||||
@ -75,9 +75,9 @@ void Profiler::EndScope()
|
|||||||
{
|
{
|
||||||
m_time.Update();
|
m_time.Update();
|
||||||
|
|
||||||
B3_ASSERT(m_top != nullptr);
|
assert(m_top != nullptr);
|
||||||
m_top->t1 = m_time.GetCurrentMilis();
|
m_top->t1 = m_time.GetCurrentMilis();
|
||||||
B3_ASSERT(m_top->t1 > m_top->t0);
|
assert(m_top->t1 > m_top->t0);
|
||||||
|
|
||||||
m_top = m_top->parent;
|
m_top = m_top->parent;
|
||||||
}
|
}
|
||||||
@ -85,8 +85,8 @@ void Profiler::EndScope()
|
|||||||
void Profiler::Begin()
|
void Profiler::Begin()
|
||||||
{
|
{
|
||||||
// If this assert is hit then it means Profiler::End hasn't been called.
|
// If this assert is hit then it means Profiler::End hasn't been called.
|
||||||
B3_ASSERT(m_root == nullptr);
|
assert(m_root == nullptr);
|
||||||
B3_ASSERT(m_top == nullptr);
|
assert(m_top == nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void RecurseEvents(ProfilerNode* node)
|
static inline void RecurseEvents(ProfilerNode* node)
|
||||||
@ -118,7 +118,7 @@ void Profiler::RecurseDestroy(ProfilerNode* node)
|
|||||||
|
|
||||||
void Profiler::End()
|
void Profiler::End()
|
||||||
{
|
{
|
||||||
B3_ASSERT(m_top == nullptr);
|
assert(m_top == nullptr);
|
||||||
|
|
||||||
ProfilerListener* listener = g_profilerListener;
|
ProfilerListener* listener = g_profilerListener;
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ void Profiler::End()
|
|||||||
RecurseDestroy(m_root);
|
RecurseDestroy(m_root);
|
||||||
m_root = nullptr;
|
m_root = nullptr;
|
||||||
|
|
||||||
B3_ASSERT(m_root == nullptr);
|
assert(m_root == nullptr);
|
||||||
|
|
||||||
if (listener)
|
if (listener)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user