Display count of symbols.

This commit is contained in:
Bartosz Taudul 2020-02-26 23:02:39 +01:00
parent a35795f793
commit 75312c7bb6
2 changed files with 2 additions and 0 deletions

View File

@ -11628,6 +11628,7 @@ void View::DrawInfo()
TextFocused( "Memory allocations:", RealToString( m_worker.GetMemData().data.size() ) );
TextFocused( "Source locations:", RealToString( m_worker.GetSrcLocCount() ) );
TextFocused( "Strings:", RealToString( m_worker.GetStringsCount() ) );
TextFocused( "Symbols:", RealToString( m_worker.GetSymbolsCount() ) );
TextFocused( "Call stacks:", RealToString( m_worker.GetCallstackPayloadCount() ) );
TextFocused( "Call stack frames:", RealToString( m_worker.GetCallstackFrameCount() ) );
TextFocused( "Call stack samples:", RealToString( m_worker.GetCallstackSampleCount() ) );

View File

@ -347,6 +347,7 @@ public:
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; }
uint64_t GetSymbolsCount() const { return m_data.symbolMap.size(); }
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; }