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

Add fiber failures.

This commit is contained in:
Bartosz Taudul
2021-11-02 01:47:31 +01:00
parent 93b6d88c4c
commit bb72bf10e9
2 changed files with 16 additions and 0 deletions
+12
View File
@@ -4958,6 +4958,16 @@ void Worker::FrameImageTwiceFailure()
m_failure = Failure::FrameImageTwice;
}
void Worker::FiberEnterFailure()
{
m_failure = Failure::FiberEnter;
}
void Worker::FiberLeaveFailure()
{
m_failure = Failure::FiberLeave;
}
void Worker::ProcessZoneValidation( const QueueZoneValidation& ev )
{
auto td = m_threadCtxData;
@@ -8006,6 +8016,8 @@ static const char* s_failureReasons[] = {
"Discontinuous frame begin/end mismatch.",
"Frame image offset is invalid.",
"Multiple frame images were sent for a single frame.",
"Fiber execution started on a thread which is already executing a fiber.",
"Fiber execution stopped on a thread which is not executing a fiber.",
};
static_assert( sizeof( s_failureReasons ) / sizeof( *s_failureReasons ) == (int)Worker::Failure::NUM_FAILURES, "Missing failure reason description." );