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
+10
View File
@@ -3645,4 +3645,14 @@ void Worker::WriteTimeline( FileWrite& f, const Vector<GpuEvent*>& vec, int64_t&
}
}
static const char* s_failureReasons[] = {
"<unknown reason>",
"Invalid order of zone begin and end events."
};
const char* Worker::GetFailureString( Worker::Failure failure )
{
return s_failureReasons[(int)failure];
}
}