mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Separate zone value and text failures.
This commit is contained in:
parent
909f5916b1
commit
9300934fa5
@ -4844,6 +4844,12 @@ void Worker::ZoneTextFailure( uint64_t thread )
|
|||||||
m_failureData.thread = thread;
|
m_failureData.thread = thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Worker::ZoneValueFailure( uint64_t thread )
|
||||||
|
{
|
||||||
|
m_failure = Failure::ZoneValue;
|
||||||
|
m_failureData.thread = thread;
|
||||||
|
}
|
||||||
|
|
||||||
void Worker::ZoneColorFailure( uint64_t thread )
|
void Worker::ZoneColorFailure( uint64_t thread )
|
||||||
{
|
{
|
||||||
m_failure = Failure::ZoneColor;
|
m_failure = Failure::ZoneColor;
|
||||||
@ -5114,7 +5120,7 @@ void Worker::ProcessZoneValue( const QueueZoneValue& ev )
|
|||||||
auto td = RetrieveThread( m_threadCtx );
|
auto td = RetrieveThread( m_threadCtx );
|
||||||
if( !td || td->stack.empty() || td->nextZoneId != td->zoneIdStack.back() )
|
if( !td || td->stack.empty() || td->nextZoneId != td->zoneIdStack.back() )
|
||||||
{
|
{
|
||||||
ZoneTextFailure( m_threadCtx );
|
ZoneValueFailure( m_threadCtx );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7912,6 +7918,7 @@ static const char* s_failureReasons[] = {
|
|||||||
"Invalid order of zone begin and end events.",
|
"Invalid order of zone begin and end events.",
|
||||||
"Zone is ended twice.",
|
"Zone is ended twice.",
|
||||||
"Zone text transfer destination doesn't match active zone.",
|
"Zone text transfer destination doesn't match active zone.",
|
||||||
|
"Zone value transfer destination doesn't match active zone.",
|
||||||
"Zone color transfer destination doesn't match active zone.",
|
"Zone color transfer destination doesn't match active zone.",
|
||||||
"Zone name transfer destination doesn't match active zone.",
|
"Zone name transfer destination doesn't match active zone.",
|
||||||
"Memory free event without a matching allocation.",
|
"Memory free event without a matching allocation.",
|
||||||
|
@ -396,6 +396,7 @@ public:
|
|||||||
ZoneStack,
|
ZoneStack,
|
||||||
ZoneDoubleEnd,
|
ZoneDoubleEnd,
|
||||||
ZoneText,
|
ZoneText,
|
||||||
|
ZoneValue,
|
||||||
ZoneColor,
|
ZoneColor,
|
||||||
ZoneName,
|
ZoneName,
|
||||||
MemFree,
|
MemFree,
|
||||||
@ -714,6 +715,7 @@ private:
|
|||||||
void ZoneStackFailure( uint64_t thread, const ZoneEvent* ev );
|
void ZoneStackFailure( uint64_t thread, const ZoneEvent* ev );
|
||||||
void ZoneDoubleEndFailure( uint64_t thread, const ZoneEvent* ev );
|
void ZoneDoubleEndFailure( uint64_t thread, const ZoneEvent* ev );
|
||||||
void ZoneTextFailure( uint64_t thread );
|
void ZoneTextFailure( uint64_t thread );
|
||||||
|
void ZoneValueFailure( uint64_t thread );
|
||||||
void ZoneColorFailure( uint64_t thread );
|
void ZoneColorFailure( uint64_t thread );
|
||||||
void ZoneNameFailure( uint64_t thread );
|
void ZoneNameFailure( uint64_t thread );
|
||||||
void MemFreeFailure( uint64_t thread );
|
void MemFreeFailure( uint64_t thread );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user