mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 06:03:51 +00:00
Return custom zone names.
This commit is contained in:
parent
053284b1c7
commit
cb100e261c
@ -861,7 +861,11 @@ const char* Worker::GetZoneName( const ZoneEvent& ev ) const
|
|||||||
|
|
||||||
const char* Worker::GetZoneName( const ZoneEvent& ev, const SourceLocation& srcloc ) const
|
const char* Worker::GetZoneName( const ZoneEvent& ev, const SourceLocation& srcloc ) const
|
||||||
{
|
{
|
||||||
if( srcloc.name.active )
|
if( ev.name.active )
|
||||||
|
{
|
||||||
|
return GetString( ev.name );
|
||||||
|
}
|
||||||
|
else if( srcloc.name.active )
|
||||||
{
|
{
|
||||||
return GetString( srcloc.name );
|
return GetString( srcloc.name );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user