mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 06:34:36 +00:00
Sym must be valid.
This commit is contained in:
parent
20c4822c98
commit
d0b6869e9e
@ -295,16 +295,16 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct
|
||||
auto namehash = charutil::hash( name );
|
||||
if( namehash == 0 ) namehash++;
|
||||
color = GetHsvColor( namehash, depth );
|
||||
if( sym->isInline )
|
||||
{
|
||||
color = DarkenColorHalf( color );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
name = "???";
|
||||
color = 0xFF888888;
|
||||
}
|
||||
if( sym->isInline )
|
||||
{
|
||||
color = DarkenColorHalf( color );
|
||||
}
|
||||
}
|
||||
|
||||
const auto hiColor = HighlightColor( color );
|
||||
|
Loading…
Reference in New Issue
Block a user