From 737738ac7383cb864a0f0cefb6a0dc7853fb7a8c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 13 Mar 2019 01:28:42 +0100 Subject: [PATCH] Wait for source location zones in update tool. Not really an issue, as it is build without full fledged statistics. --- update/src/update.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update/src/update.cpp b/update/src/update.cpp index e234e92d..5ed8754a 100644 --- a/update/src/update.cpp +++ b/update/src/update.cpp @@ -2,6 +2,7 @@ # include #endif +#include #include #include #include @@ -54,6 +55,10 @@ int main( int argc, char** argv ) { tracy::Worker worker( *f ); +#ifndef TRACY_NO_STATISTICS + while( !worker.AreSourceLocationZonesReady() ) std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) ); +#endif + auto w = std::unique_ptr( tracy::FileWrite::Open( output, hc ? tracy::FileWrite::Compression::Slow : tracy::FileWrite::Compression::Fast ) ); if( !w ) {