Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2020-04-11 19:21:46 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-04-11 19:21:46 +0300
commitc4bddf59e234279552f1754ec2c1057c736c6009 (patch)
tree90ed85ca045ba15aec3fee782cf84bb4c50053cf
parent6c76c8098b7ec2dcf510ba7588068237c2f6b79d (diff)
Allow access to sampling data before instrumentation is ready.
-rw-r--r--server/TracyView.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index 630216a8..b4374302 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -11048,7 +11048,7 @@ void View::DrawStatistics()
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
ImGui::TextWrapped( "Rebuild without the TRACY_NO_STATISTICS macro to enable statistics view." );
#else
- if( !m_worker.AreSourceLocationZonesReady() )
+ if( !m_worker.AreSourceLocationZonesReady() && ( !m_worker.AreCallstackSamplesReady() || m_worker.GetCallstackSampleCount() == 0 ) )
{
ImGui::TextWrapped( "Please wait, computing data..." );
DrawWaitingDots( s_time );
@@ -11082,6 +11082,16 @@ void View::DrawStatistics()
if( m_statMode == 0 )
{
+ if( !m_worker.AreSourceLocationZonesReady() )
+ {
+ ImGui::Spacing();
+ ImGui::Separator();
+ ImGui::TextWrapped( "Please wait, computing data..." );
+ DrawWaitingDots( s_time );
+ ImGui::End();
+ return;
+ }
+
m_statisticsFilter.Draw( ICON_FA_FILTER, 200 );
ImGui::SameLine();
if( ImGui::Button( ICON_FA_BACKSPACE " Clear" ) )