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