1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Store failure reason strings in Worker.

This commit is contained in:
Bartosz Taudul
2019-01-15 18:42:15 +01:00
parent 3cd97138fc
commit 9944a73444
4 changed files with 16 additions and 21 deletions
+1 -9
View File
@@ -469,15 +469,7 @@ bool View::Draw()
ImGui::Text( "Profiling session terminated due to improper instrumentation.\nPlease correct your program and try again." );
ImGui::Text( "Reason:" );
ImGui::SameLine();
switch( failure )
{
case Worker::Failure::ZoneStack:
ImGui::Text( "Invalid order of zone begin and end events." );
break;
default:
assert( false );
break;
}
ImGui::Text( "%s", Worker::GetFailureString( failure ) );
ImGui::Separator();
if( srcloc.name.active )
{