mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 13:13:53 +00:00
GPU source location may not yet be available.
This commit is contained in:
parent
df75b25a3f
commit
c6ea032de3
@ -888,8 +888,14 @@ const char* Worker::GetZoneName( const GpuEvent& ev ) const
|
||||
|
||||
const char* Worker::GetZoneName( const GpuEvent& ev, const SourceLocation& srcloc ) const
|
||||
{
|
||||
assert( srcloc.name.active );
|
||||
return GetString( srcloc.name );
|
||||
if( srcloc.name.active )
|
||||
{
|
||||
return GetString( srcloc.name );
|
||||
}
|
||||
else
|
||||
{
|
||||
return GetString( srcloc.function );
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<int32_t> Worker::GetMatchingSourceLocation( const char* query ) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user