1
0
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:
Bartosz Taudul 2017-10-01 19:21:25 +02:00
parent 91fd171b60
commit 3dc4fc4796

View File

@ -1566,6 +1566,17 @@ void View::ZoneTooltip( const Event& ev )
ImGui::Text( "%s:%i", filename, line ); ImGui::Text( "%s:%i", filename, line );
ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) ); ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) );
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_delay * dmul ) ); 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 ) if( ev.text && ev.text->userText )
{ {
ImGui::Text( "" ); ImGui::Text( "" );