mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Enable support for restrict time in call stack tree.
This commit is contained in:
parent
1410ba6f01
commit
59293b1850
@ -6479,9 +6479,13 @@ std::vector<CallstackFrameTree> View::GetCallstackFrameTree( const MemData& mem
|
||||
std::vector<Vector<uint32_t>> paths;
|
||||
paths.resize( m_worker.GetCallstackPayloadCount() );
|
||||
|
||||
const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2;
|
||||
|
||||
for( auto& ev : mem.data )
|
||||
{
|
||||
if( ev.csAlloc == 0 ) continue;
|
||||
if( m_memInfo.restrictTime && ev.timeAlloc >= zvMid ) continue;
|
||||
|
||||
auto& path = paths[ev.csAlloc];
|
||||
if( !path.empty() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user