mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Add symbol samples accessor.
This commit is contained in:
parent
aa8b60a824
commit
b418c98e63
@ -2057,6 +2057,14 @@ const CallstackFrameData* Worker::GetParentCallstackFrame( const CallstackFrameI
|
||||
return it->second;
|
||||
}
|
||||
}
|
||||
|
||||
const Vector<Int48>* Worker::GetSamplesForSymbol( uint64_t symAddr ) const
|
||||
{
|
||||
assert( m_data.symbolSamplesReady );
|
||||
auto it = m_data.symbolSamples.find( symAddr );
|
||||
if( it == m_data.symbolSamples.end() ) return nullptr;
|
||||
return &it->second;
|
||||
}
|
||||
#endif
|
||||
|
||||
const SymbolData* Worker::GetSymbolData( uint64_t sym ) const
|
||||
|
@ -502,6 +502,7 @@ public:
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
const VarArray<CallstackFrameId>& GetParentCallstack( uint32_t idx ) const { return *m_data.parentCallstackPayload[idx]; }
|
||||
const CallstackFrameData* GetParentCallstackFrame( const CallstackFrameId& ptr ) const;
|
||||
const Vector<Int48>* GetSamplesForSymbol( uint64_t symAddr ) const;
|
||||
#endif
|
||||
|
||||
const CrashEvent& GetCrashEvent() const { return m_data.crashEvent; }
|
||||
|
Loading…
Reference in New Issue
Block a user