Create code address -> symbol map.

This commit is contained in:
Bartosz Taudul 2021-06-19 19:07:35 +02:00
parent fe7db6db4e
commit 654331a8c8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 6 additions and 0 deletions

View File

@ -6268,6 +6268,11 @@ void Worker::ProcessCodeInformation( const QueueCodeInformation& ev )
auto cit = m_checkedFileStrings.find( ref );
if( cit == m_checkedFileStrings.end() ) CacheSource( ref );
}
if( ev.symAddr != 0 )
{
assert( m_data.codeSymbolMap.find( ev.ptr ) == m_data.codeSymbolMap.end() );
m_data.codeSymbolMap.emplace( ev.ptr, ev.symAddr );
}
}
void Worker::ProcessCrashReport( const QueueCrashReport& ev )

View File

@ -285,6 +285,7 @@ private:
Vector<uint64_t> symbolLocInline;
int64_t newSymbolsIndex = -1;
int64_t newInlineSymbolsIndex = -1;
unordered_flat_map<uint64_t, uint64_t> codeSymbolMap;
#ifndef TRACY_NO_STATISTICS
unordered_flat_map<VarArray<CallstackFrameId>*, uint32_t, VarArrayHasher<CallstackFrameId>, VarArrayComparator<CallstackFrameId>> parentCallstackMap;