mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Assign callstack idx to memory event.
This commit is contained in:
parent
c28465aa7c
commit
77db91253b
@ -2021,8 +2021,13 @@ void Worker::ProcessMemFreeCallstack( const QueueMemFree& ev )
|
|||||||
|
|
||||||
void Worker::ProcessCallstackMemory( const QueueCallstackMemory& ev )
|
void Worker::ProcessCallstackMemory( const QueueCallstackMemory& ev )
|
||||||
{
|
{
|
||||||
|
auto it = m_pendingCallstacks.find( ev.ptr );
|
||||||
|
assert( it != m_pendingCallstacks.end() );
|
||||||
|
|
||||||
auto& mem = m_data.memory.data[m_lastMemActionCallstack];
|
auto& mem = m_data.memory.data[m_lastMemActionCallstack];
|
||||||
mem.callstack = ev.ptr;
|
mem.callstack = it->second;
|
||||||
|
|
||||||
|
m_pendingCallstacks.erase( it );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::MemAllocChanged( int64_t time )
|
void Worker::MemAllocChanged( int64_t time )
|
||||||
|
Loading…
Reference in New Issue
Block a user