mirror of
https://github.com/wolfpld/tracy
synced 2025-05-05 06:33:52 +00:00
Display CPU id in zone tooltips.
This commit is contained in:
parent
91fd171b60
commit
3dc4fc4796
@ -1566,6 +1566,17 @@ void View::ZoneTooltip( const Event& ev )
|
||||
ImGui::Text( "%s:%i", filename, line );
|
||||
ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) );
|
||||
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_delay * dmul ) );
|
||||
if( ev.cpu_start != -1 )
|
||||
{
|
||||
if( ev.end == -1 || ev.cpu_start == ev.cpu_end )
|
||||
{
|
||||
ImGui::Text( "CPU: %i", ev.cpu_start );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::Text( "CPU: %i -> %i", ev.cpu_start, ev.cpu_end );
|
||||
}
|
||||
}
|
||||
if( ev.text && ev.text->userText )
|
||||
{
|
||||
ImGui::Text( "" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user