1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Load second trace user data in compare menu.

This commit is contained in:
Bartosz Taudul
2019-07-26 23:25:03 +02:00
parent e5d5af84fd
commit be3b458f28
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -7160,6 +7160,7 @@ void View::DrawCompare()
try
{
m_compare.second = std::make_unique<Worker>( *f, EventType::None );
m_compare.userData = std::make_unique<UserData>( m_compare.second->GetCaptureProgram().c_str(), m_compare.second->GetCaptureTime() );
}
catch( const tracy::UnsupportedVersion& e )
{
@@ -7213,6 +7214,7 @@ void View::DrawCompare()
{
m_compare.Reset();
m_compare.second.reset();
m_compare.userData.reset();
ImGui::End();
return;
}