Display application info in info window.

This commit is contained in:
Bartosz Taudul 2019-07-12 18:39:07 +02:00
parent d64ab7db5a
commit 8c9d46ef29
2 changed files with 13 additions and 0 deletions

View File

@ -8895,6 +8895,18 @@ void View::DrawInfo()
}
}
}
auto& appInfo = m_worker.GetAppInfo();
if( !appInfo.empty() )
{
ImGui::Separator();
TextDisabledUnformatted( "Application info:" );
for( auto& v : appInfo )
{
ImGui::TextUnformatted( m_worker.GetString( v ) );
}
}
ImGui::End();
}

View File

@ -279,6 +279,7 @@ public:
const Vector<ThreadData*>& GetThreadData() const { return m_data.threads; }
const MemData& GetMemData() const { return m_data.memory; }
const Vector<FrameImage*>& GetFrameImages() const { return m_data.frameImage; }
const Vector<StringRef>& GetAppInfo() const { return m_data.appInfo; }
const VarArray<CallstackFrameId>& GetCallstack( uint32_t idx ) const { return *m_data.callstackPayload[idx]; }
const CallstackFrameData* GetCallstackFrame( const CallstackFrameId& ptr ) const;