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>2019-03-13 03:28:42 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-03-13 03:28:42 +0300
commit737738ac7383cb864a0f0cefb6a0dc7853fb7a8c (patch)
treefc25a4a73bc97d1e2eea00e386dbdabaa2f701a3 /update/src
parent3b051b1119a45032b91f4321683b30129a2a152b (diff)
Wait for source location zones in update tool.
Not really an issue, as it is build without full fledged statistics.
Diffstat (limited to 'update/src')
-rw-r--r--update/src/update.cpp5
1 files changed, 5 insertions, 0 deletions
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 <windows.h>
#endif
+#include <chrono>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -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>( tracy::FileWrite::Open( output, hc ? tracy::FileWrite::Compression::Slow : tracy::FileWrite::Compression::Fast ) );
if( !w )
{