mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Display srcloc, callstack counts.
This commit is contained in:
parent
b75b198f7e
commit
c2c0f887aa
@ -5767,6 +5767,9 @@ void View::DrawInfo()
|
||||
TextFocused( "Lock events:", RealToString( m_worker.GetLockCount(), true ) );
|
||||
TextFocused( "Plot data points:", RealToString( m_worker.GetPlotCount(), true ) );
|
||||
TextFocused( "Memory allocations:", RealToString( m_worker.GetMemData().data.size(), true ) );
|
||||
TextFocused( "Source locations:", RealToString( m_worker.GetSrcLocCount(), true ) );
|
||||
TextFocused( "Callstacks:", RealToString( m_worker.GetCallstackPayloadCount(), true ) );
|
||||
TextFocused( "Callstack frames:", RealToString( m_worker.GetCallstackFrameCount(), true ) );
|
||||
ImGui::Separator();
|
||||
TextFocused( "Frame set:", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ) );
|
||||
TextFocused( "Count:", RealToString( m_frames->frames.size(), true ) );
|
||||
|
@ -184,6 +184,9 @@ public:
|
||||
uint64_t GetZoneCount() const { return m_data.zonesCnt; }
|
||||
uint64_t GetLockCount() const;
|
||||
uint64_t GetPlotCount() const;
|
||||
uint64_t GetSrcLocCount() const { return m_data.sourceLocationPayload.size() + m_data.sourceLocation.size(); }
|
||||
uint64_t GetCallstackPayloadCount() const { return m_data.callstackPayload.size() - 1; }
|
||||
uint64_t GetCallstackFrameCount() const { return m_data.callstackFrameMap.size(); }
|
||||
uint64_t GetFrameOffset() const { return m_data.frameOffset; }
|
||||
const FrameData* GetFramesBase() const { return m_data.framesBase; }
|
||||
const Vector<FrameData*>& GetFrames() const { return m_data.frames.Data(); }
|
||||
|
Loading…
Reference in New Issue
Block a user