1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 14:03:52 +00:00

Wait for data to be ready.

This commit is contained in:
Bartosz Taudul 2020-03-28 01:17:35 +01:00
parent 8dba099a56
commit 28db0f6227

View File

@ -11571,6 +11571,7 @@ void View::DrawCallstackWindow()
ImGui::RadioButton( "Symbol address", &m_showCallstackFrameAddress, 2 ); ImGui::RadioButton( "Symbol address", &m_showCallstackFrameAddress, 2 );
auto& cs = m_worker.GetCallstack( m_callstackInfoWindow ); auto& cs = m_worker.GetCallstack( m_callstackInfoWindow );
if( m_worker.AreCallstackSamplesReady() )
{ {
auto frame = m_worker.GetCallstackFrame( *cs.begin() ); auto frame = m_worker.GetCallstackFrame( *cs.begin() );
if( frame && frame->data[0].symAddr != 0 ) if( frame && frame->data[0].symAddr != 0 )