mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add inline symbols map accessors.
This commit is contained in:
@@ -2378,6 +2378,13 @@ uint64_t Worker::GetSymbolForAddress( uint64_t address, uint32_t& offset ) const
|
||||
return it->addr;
|
||||
}
|
||||
|
||||
uint64_t Worker::GetInlineSymbolForAddress( uint64_t address ) const
|
||||
{
|
||||
auto it = m_data.codeSymbolMap.find( address );
|
||||
if( it == m_data.codeSymbolMap.end() ) return 0;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
StringIdx Worker::GetLocationForAddress( uint64_t address, uint32_t& line ) const
|
||||
{
|
||||
auto it = m_data.codeAddressToLocation.find( address );
|
||||
|
||||
Reference in New Issue
Block a user