mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
No need for GetZoneName() with GpuEvent + srcloc parameters.
This commit is contained in:
+1
-13
@@ -2527,19 +2527,7 @@ const char* Worker::GetZoneName( const ZoneEvent& ev, const SourceLocation& srcl
|
||||
const char* Worker::GetZoneName( const GpuEvent& ev ) const
|
||||
{
|
||||
auto& srcloc = GetSourceLocation( ev.SrcLoc() );
|
||||
return GetZoneName( ev, srcloc );
|
||||
}
|
||||
|
||||
const char* Worker::GetZoneName( const GpuEvent& ev, const SourceLocation& srcloc ) const
|
||||
{
|
||||
if( srcloc.name.active )
|
||||
{
|
||||
return GetString( srcloc.name );
|
||||
}
|
||||
else
|
||||
{
|
||||
return GetString( srcloc.function );
|
||||
}
|
||||
return GetZoneName( srcloc );
|
||||
}
|
||||
|
||||
static bool strstr_nocase( const char* l, const char* r )
|
||||
|
||||
Reference in New Issue
Block a user