mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +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 );
|
auto namehash = charutil::hash( name );
|
||||||
if( namehash == 0 ) namehash++;
|
if( namehash == 0 ) namehash++;
|
||||||
color = GetHsvColor( namehash, depth );
|
color = GetHsvColor( namehash, depth );
|
||||||
|
if( sym->isInline )
|
||||||
|
{
|
||||||
|
color = DarkenColorHalf( color );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
name = "???";
|
name = "???";
|
||||||
color = 0xFF888888;
|
color = 0xFF888888;
|
||||||
}
|
}
|
||||||
if( sym->isInline )
|
|
||||||
{
|
|
||||||
color = DarkenColorHalf( color );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto hiColor = HighlightColor( color );
|
const auto hiColor = HighlightColor( color );
|
||||||
|
Loading…
Reference in New Issue
Block a user