mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Add context to zone text failures.
This commit is contained in:
parent
930ef77ea9
commit
d3905bd4bb
@ -4838,10 +4838,11 @@ void Worker::ZoneDoubleEndFailure( uint64_t thread, const ZoneEvent* ev )
|
|||||||
m_failureData.srcloc = ev ? ev->SrcLoc() : 0;
|
m_failureData.srcloc = ev ? ev->SrcLoc() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::ZoneTextFailure( uint64_t thread )
|
void Worker::ZoneTextFailure( uint64_t thread, const char* text )
|
||||||
{
|
{
|
||||||
m_failure = Failure::ZoneText;
|
m_failure = Failure::ZoneText;
|
||||||
m_failureData.thread = thread;
|
m_failureData.thread = thread;
|
||||||
|
m_failureData.message = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::ZoneValueFailure( uint64_t thread, uint64_t value )
|
void Worker::ZoneValueFailure( uint64_t thread, uint64_t value )
|
||||||
@ -5054,7 +5055,7 @@ void Worker::ProcessZoneText()
|
|||||||
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 );
|
ZoneTextFailure( m_threadCtx, m_pendingSingleString.ptr );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -715,7 +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, const char* text );
|
||||||
void ZoneValueFailure( uint64_t thread, uint64_t value );
|
void ZoneValueFailure( uint64_t thread, uint64_t value );
|
||||||
void ZoneColorFailure( uint64_t thread );
|
void ZoneColorFailure( uint64_t thread );
|
||||||
void ZoneNameFailure( uint64_t thread );
|
void ZoneNameFailure( uint64_t thread );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user