1
0
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:
Bartosz Taudul
2021-06-19 19:13:34 +02:00
parent 654331a8c8
commit ec3ee09f09
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -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 );