mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't search for string in map, if it's known there's nothing there.
This commit is contained in:
parent
8b2af369ad
commit
7da59a55cc
@ -1387,12 +1387,20 @@ const char* View::GetString( const StringRef& ref ) const
|
||||
{
|
||||
if( ref.isidx )
|
||||
{
|
||||
assert( ref.active );
|
||||
return m_stringData[ref.stridx];
|
||||
}
|
||||
else
|
||||
{
|
||||
if( ref.active )
|
||||
{
|
||||
return GetString( ref.strptr );
|
||||
}
|
||||
else
|
||||
{
|
||||
return "???";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const char* View::GetThreadString( uint64_t id ) const
|
||||
|
Loading…
Reference in New Issue
Block a user