mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +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
|
||||
{
|
||||
if( srcloc.name.active )
|
||||
if( ev.name.active )
|
||||
{
|
||||
return GetString( ev.name );
|
||||
}
|
||||
else if( srcloc.name.active )
|
||||
{
|
||||
return GetString( srcloc.name );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user