mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 21:53:52 +00:00
Display captured program name and capture time.
This commit is contained in:
parent
8f1acf2571
commit
81655816f0
@ -6329,12 +6329,20 @@ void View::DrawMemoryAllocWindow()
|
||||
|
||||
void View::DrawInfo()
|
||||
{
|
||||
char dtmp[64];
|
||||
time_t date = m_worker.GetCaptureTime();
|
||||
auto lt = localtime( &date );
|
||||
strftime( dtmp, 64, "%F %T", lt );
|
||||
|
||||
const auto& io = ImGui::GetIO();
|
||||
|
||||
ImGui::Begin( "Trace information", &m_showInfo );
|
||||
TextFocused( "Profiler memory usage:", MemSizeToString( memUsage.load( std::memory_order_relaxed ) ) );
|
||||
TextFocused( "Profiler FPS:", RealToString( int( io.Framerate ), true ) );
|
||||
ImGui::Separator();
|
||||
TextFocused( "Captured program:", m_worker.GetCaptureProgram().c_str() );
|
||||
TextFocused( "Capture time:", dtmp );
|
||||
ImGui::Separator();
|
||||
TextFocused( "Queue delay:", TimeToString( m_worker.GetDelay() ) );
|
||||
TextFocused( "Timer resolution:", TimeToString( m_worker.GetResolution() ) );
|
||||
ImGui::Separator();
|
||||
|
Loading…
x
Reference in New Issue
Block a user