Display number of callstack samples.

This commit is contained in:
Bartosz Taudul 2020-02-22 16:42:26 +01:00
parent 437771ea85
commit ca39c9877e
2 changed files with 2 additions and 0 deletions

View File

@ -11388,6 +11388,7 @@ void View::DrawInfo()
TextFocused( "Strings:", RealToString( m_worker.GetStringsCount() ) );
TextFocused( "Call stacks:", RealToString( m_worker.GetCallstackPayloadCount() ) );
TextFocused( "Call stack frames:", RealToString( m_worker.GetCallstackFrameCount() ) );
TextFocused( "Call stack samples:", RealToString( m_worker.GetCallstackSampleCount() ) );
TextFocused( "Frame images:", RealToString( ficnt ) );
TextFocused( "Context switch regions:", RealToString( m_worker.GetContextSwitchCount() ) );
if( ImGui::IsItemHovered() )

View File

@ -344,6 +344,7 @@ public:
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 GetCallstackSampleCount() const { return m_data.samplesCnt; }
uint32_t GetFrameImageCount() const { return (uint32_t)m_data.frameImage.size(); }
uint64_t GetStringsCount() const { return m_data.strings.size() + m_data.stringData.size(); }
uint64_t GetFrameOffset() const { return m_data.frameOffset; }