mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Create code address -> symbol map.
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user