mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-01 17:34:36 +00:00
Add source location overflow failures.
This commit is contained in:
parent
cb7ce1c3aa
commit
54ee77026f
@ -5029,6 +5029,11 @@ void Worker::FiberLeaveFailure()
|
|||||||
m_failure = Failure::FiberLeave;
|
m_failure = Failure::FiberLeave;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Worker::SourceLocationOverflowFailure()
|
||||||
|
{
|
||||||
|
m_failure = Failure::SourceLocationOverflow;
|
||||||
|
}
|
||||||
|
|
||||||
void Worker::ProcessZoneValidation( const QueueZoneValidation& ev )
|
void Worker::ProcessZoneValidation( const QueueZoneValidation& ev )
|
||||||
{
|
{
|
||||||
auto td = GetCurrentThreadData();
|
auto td = GetCurrentThreadData();
|
||||||
@ -8370,6 +8375,7 @@ static const char* s_failureReasons[] = {
|
|||||||
"Frame image offset is invalid.",
|
"Frame image offset is invalid.",
|
||||||
"Multiple frame images were sent for a single frame.",
|
"Multiple frame images were sent for a single frame.",
|
||||||
"Fiber execution stopped on a thread which is not executing a fiber.",
|
"Fiber execution stopped on a thread which is not executing a fiber.",
|
||||||
|
"Too many source locations. You cannot have more than 32K static or dynamic source locations.",
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert( sizeof( s_failureReasons ) / sizeof( *s_failureReasons ) == (int)Worker::Failure::NUM_FAILURES, "Missing failure reason description." );
|
static_assert( sizeof( s_failureReasons ) / sizeof( *s_failureReasons ) == (int)Worker::Failure::NUM_FAILURES, "Missing failure reason description." );
|
||||||
|
@ -441,6 +441,7 @@ public:
|
|||||||
FrameImageIndex,
|
FrameImageIndex,
|
||||||
FrameImageTwice,
|
FrameImageTwice,
|
||||||
FiberLeave,
|
FiberLeave,
|
||||||
|
SourceLocationOverflow,
|
||||||
|
|
||||||
NUM_FAILURES
|
NUM_FAILURES
|
||||||
};
|
};
|
||||||
@ -790,6 +791,7 @@ private:
|
|||||||
void FrameImageIndexFailure();
|
void FrameImageIndexFailure();
|
||||||
void FrameImageTwiceFailure();
|
void FrameImageTwiceFailure();
|
||||||
void FiberLeaveFailure();
|
void FiberLeaveFailure();
|
||||||
|
void SourceLocationOverflowFailure();
|
||||||
|
|
||||||
tracy_force_inline void CheckSourceLocation( uint64_t ptr );
|
tracy_force_inline void CheckSourceLocation( uint64_t ptr );
|
||||||
void NewSourceLocation( uint64_t ptr );
|
void NewSourceLocation( uint64_t ptr );
|
||||||
|
Loading…
Reference in New Issue
Block a user