mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Wait for source location zones in update tool.
Not really an issue, as it is build without full fledged statistics.
This commit is contained in:
parent
3b051b1119
commit
737738ac73
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user