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:
@@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user