diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index 32656ace..a2794bc4 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -179,6 +179,22 @@ int main( int argc, char** argv ) std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) ); } + const auto& failure = worker.GetFailureType(); + if( failure != tracy::Worker::Failure::None ) + { + printf( "\n\033[31;1mInstrumentation failure: " ); + switch( failure ) + { + case tracy::Worker::Failure::ZoneStack: + printf( "Invalid order of zone begin and end events." ); + break; + default: + printf( "" ); + break; + } + printf( "\033[0m" ); + } + printf( "\nFrames: %" PRIu64 "\nTime span: %s\nZones: %s\nSaving trace...", worker.GetFrameCount( *worker.GetFramesBase() ), TimeToString( worker.GetLastTime() - worker.GetTimeBegin() ), RealToString( worker.GetZoneCount(), true ) ); fflush( stdout ); auto f = std::unique_ptr( tracy::FileWrite::Open( output ) );