Display srcloc, callstack counts.

This commit is contained in:
Bartosz Taudul 2018-08-14 16:36:25 +02:00
parent b75b198f7e
commit c2c0f887aa
2 changed files with 6 additions and 0 deletions

View File

@ -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 ) );

View File

@ -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(); }