mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +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;
|
||||
}
|
||||
|
||||
void Worker::SourceLocationOverflowFailure()
|
||||
{
|
||||
m_failure = Failure::SourceLocationOverflow;
|
||||
}
|
||||
|
||||
void Worker::ProcessZoneValidation( const QueueZoneValidation& ev )
|
||||
{
|
||||
auto td = GetCurrentThreadData();
|
||||
@ -8370,6 +8375,7 @@ static const char* s_failureReasons[] = {
|
||||
"Frame image offset is invalid.",
|
||||
"Multiple frame images were sent for a single frame.",
|
||||
"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." );
|
||||
|
@ -441,6 +441,7 @@ public:
|
||||
FrameImageIndex,
|
||||
FrameImageTwice,
|
||||
FiberLeave,
|
||||
SourceLocationOverflow,
|
||||
|
||||
NUM_FAILURES
|
||||
};
|
||||
@ -790,6 +791,7 @@ private:
|
||||
void FrameImageIndexFailure();
|
||||
void FrameImageTwiceFailure();
|
||||
void FiberLeaveFailure();
|
||||
void SourceLocationOverflowFailure();
|
||||
|
||||
tracy_force_inline void CheckSourceLocation( uint64_t ptr );
|
||||
void NewSourceLocation( uint64_t ptr );
|
||||
|
Loading…
Reference in New Issue
Block a user