Assign callstack idx to memory event.

This commit is contained in:
Bartosz Taudul 2018-06-19 21:34:36 +02:00
parent c28465aa7c
commit 77db91253b

View File

@ -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 )