mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Display application info in info window.
This commit is contained in:
parent
d64ab7db5a
commit
8c9d46ef29
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user