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-01-15 20:42:15 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-01-15 20:42:15 +0300
commit9944a73444f89064096bdb42fe40351803c01bad (patch)
tree1106b4fbbe4712796137de8248cafd384737cf49 /capture
parent3cd97138fcebed2003996f965b9a3fd5d53f63df (diff)
Store failure reason strings in Worker.
Diffstat (limited to 'capture')
-rw-r--r--capture/src/capture.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp
index a2794bc4..797ddcb0 100644
--- a/capture/src/capture.cpp
+++ b/capture/src/capture.cpp
@@ -182,17 +182,7 @@ int main( int argc, char** argv )
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( "<unknown reason>" );
- break;
- }
- printf( "\033[0m" );
+ printf( "\n\033[31;1mInstrumentation failure: %s\033[0m", tracy::Worker::GetFailureString( failure ) );
}
printf( "\nFrames: %" PRIu64 "\nTime span: %s\nZones: %s\nSaving trace...", worker.GetFrameCount( *worker.GetFramesBase() ), TimeToString( worker.GetLastTime() - worker.GetTimeBegin() ), RealToString( worker.GetZoneCount(), true ) );