mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Create code address -> symbol map.
This commit is contained in:
parent
fe7db6db4e
commit
654331a8c8
@ -6268,6 +6268,11 @@ void Worker::ProcessCodeInformation( const QueueCodeInformation& ev )
|
|||||||
auto cit = m_checkedFileStrings.find( ref );
|
auto cit = m_checkedFileStrings.find( ref );
|
||||||
if( cit == m_checkedFileStrings.end() ) CacheSource( 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 )
|
void Worker::ProcessCrashReport( const QueueCrashReport& ev )
|
||||||
|
@ -285,6 +285,7 @@ private:
|
|||||||
Vector<uint64_t> symbolLocInline;
|
Vector<uint64_t> symbolLocInline;
|
||||||
int64_t newSymbolsIndex = -1;
|
int64_t newSymbolsIndex = -1;
|
||||||
int64_t newInlineSymbolsIndex = -1;
|
int64_t newInlineSymbolsIndex = -1;
|
||||||
|
unordered_flat_map<uint64_t, uint64_t> codeSymbolMap;
|
||||||
|
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
unordered_flat_map<VarArray<CallstackFrameId>*, uint32_t, VarArrayHasher<CallstackFrameId>, VarArrayComparator<CallstackFrameId>> parentCallstackMap;
|
unordered_flat_map<VarArray<CallstackFrameId>*, uint32_t, VarArrayHasher<CallstackFrameId>, VarArrayComparator<CallstackFrameId>> parentCallstackMap;
|
||||||
|
Loading…
Reference in New Issue
Block a user