mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 00:23:47 +00:00
Flush stdout before perf preflight, so it's printed before stderr.
This commit is contained in:
@@ -163,6 +163,7 @@ static int RunAttached( pid_t pid )
|
|||||||
printf( "Attaching to process %d", (int)pid );
|
printf( "Attaching to process %d", (int)pid );
|
||||||
if( tracy::___tracy_magic_process_name[0] ) printf( " (%s)", tracy::___tracy_magic_process_name );
|
if( tracy::___tracy_magic_process_name[0] ) printf( " (%s)", tracy::___tracy_magic_process_name );
|
||||||
printf( "...\n" );
|
printf( "...\n" );
|
||||||
|
fflush( stdout );
|
||||||
|
|
||||||
if( !PreflightPerfEventOpen( pid ) ) return 1;
|
if( !PreflightPerfEventOpen( pid ) ) return 1;
|
||||||
|
|
||||||
@@ -261,6 +262,7 @@ static int RunForked( int argc, char** argv )
|
|||||||
printf( "Profiling '%s' (pid %d)...\n",
|
printf( "Profiling '%s' (pid %d)...\n",
|
||||||
tracy::___tracy_magic_process_name[0] ? tracy::___tracy_magic_process_name : argv[0],
|
tracy::___tracy_magic_process_name[0] ? tracy::___tracy_magic_process_name : argv[0],
|
||||||
(int)childPid );
|
(int)childPid );
|
||||||
|
fflush( stdout );
|
||||||
|
|
||||||
if( !PreflightPerfEventOpen( childPid ) )
|
if( !PreflightPerfEventOpen( childPid ) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user