mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Callstack getters are const.
This commit is contained in:
parent
fa62603c77
commit
b0aa13f4af
@ -745,7 +745,7 @@ std::pair <int, int> Worker::GetFrameRange( int64_t from, int64_t to )
|
||||
return std::make_pair( zbegin, zend );
|
||||
}
|
||||
|
||||
const CallstackFrame* Worker::GetCallstackFrame( uint64_t ptr )
|
||||
const CallstackFrame* Worker::GetCallstackFrame( uint64_t ptr ) const
|
||||
{
|
||||
auto it = m_data.callstackFrameMap.find( ptr );
|
||||
if( it == m_data.callstackFrameMap.end() )
|
||||
|
@ -162,8 +162,8 @@ public:
|
||||
const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; }
|
||||
const MemData& GetMemData() const { return m_data.memory; }
|
||||
|
||||
const VarArray<uint64_t>& GetCallstack( uint32_t idx ) { return *m_data.callstackPayload[idx]; }
|
||||
const CallstackFrame* GetCallstackFrame( uint64_t ptr );
|
||||
const VarArray<uint64_t>& GetCallstack( uint32_t idx ) const { return *m_data.callstackPayload[idx]; }
|
||||
const CallstackFrame* GetCallstackFrame( uint64_t ptr ) const;
|
||||
|
||||
// Some zones may have incomplete timing data (only start time is available, end hasn't arrived yet).
|
||||
// GetZoneEnd() will try to infer the end time by looking at child zones (parent zone can't end
|
||||
|
Loading…
Reference in New Issue
Block a user