mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Don't check twice for the same thing.
This commit is contained in:
parent
007e434a05
commit
8f85a0da2c
@ -9390,7 +9390,7 @@ std::vector<MemoryPage> View::GetMemoryPages() const
|
|||||||
const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2;
|
const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2;
|
||||||
for( auto& alloc : mem.data )
|
for( auto& alloc : mem.data )
|
||||||
{
|
{
|
||||||
if( m_memInfo.restrictTime && alloc.timeAlloc > zvMid ) break;
|
if( alloc.timeAlloc > zvMid ) break;
|
||||||
|
|
||||||
const auto a0 = alloc.ptr - memlow;
|
const auto a0 = alloc.ptr - memlow;
|
||||||
const auto a1 = a0 + alloc.size;
|
const auto a1 = a0 + alloc.size;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user