mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +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 );
|
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 );
|
auto it = m_data.callstackFrameMap.find( ptr );
|
||||||
if( it == m_data.callstackFrameMap.end() )
|
if( it == m_data.callstackFrameMap.end() )
|
||||||
|
@ -162,8 +162,8 @@ public:
|
|||||||
const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; }
|
const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; }
|
||||||
const MemData& GetMemData() const { return m_data.memory; }
|
const MemData& GetMemData() const { return m_data.memory; }
|
||||||
|
|
||||||
const VarArray<uint64_t>& GetCallstack( uint32_t idx ) { return *m_data.callstackPayload[idx]; }
|
const VarArray<uint64_t>& GetCallstack( uint32_t idx ) const { return *m_data.callstackPayload[idx]; }
|
||||||
const CallstackFrame* GetCallstackFrame( uint64_t ptr );
|
const CallstackFrame* GetCallstackFrame( uint64_t ptr ) const;
|
||||||
|
|
||||||
// Some zones may have incomplete timing data (only start time is available, end hasn't arrived yet).
|
// 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
|
// 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