diff --git a/profiler/src/profiler/TracyView_CpuData.cpp b/profiler/src/profiler/TracyView_CpuData.cpp index 6a189363..8d94a62e 100644 --- a/profiler/src/profiler/TracyView_CpuData.cpp +++ b/profiler/src/profiler/TracyView_CpuData.cpp @@ -80,6 +80,7 @@ bool View::DrawCpuData( const TimelineContext& ctx, const std::vectorpackage, tt->core, i ); + if( topo.size() > 1 ) + { + ImGui::TextDisabled( "[%i:%i:%i] CPU %i:", tt->package, tt->die, tt->core, i ); + } + else + { + ImGui::TextDisabled( "[%i:%i] CPU %i:", tt->die, tt->core, i ); + } } else { @@ -175,6 +183,8 @@ bool View::DrawCpuData( const TimelineContext& ctx, const std::vectorpackage ) ); ImGui::SameLine(); + TextFocused( "Die:", RealToString( tt->die ) ); + ImGui::SameLine(); TextFocused( "Core:", RealToString( tt->core ) ); } TextFocused( "Context switch regions:", RealToString( v.num ) ); @@ -264,6 +274,8 @@ bool View::DrawCpuData( const TimelineContext& ctx, const std::vectorpackage ) ); ImGui::SameLine(); + TextFocused( "Die:", RealToString( tt->die ) ); + ImGui::SameLine(); TextFocused( "Core:", RealToString( tt->core ) ); } if( local ) @@ -327,7 +339,15 @@ bool View::DrawCpuData( const TimelineContext& ctx, const std::vectorpackage, tt->core, i ); + auto& topo = m_worker.GetCpuTopology(); + if( topo.size() > 1 ) + { + sprintf( buf, "[%i:%i:%i] CPU %i", tt->package, tt->die, tt->core, i ); + } + else + { + sprintf( buf, "[%i:%i] CPU %i", tt->die, tt->core, i ); + } } else { @@ -347,6 +367,8 @@ bool View::DrawCpuData( const TimelineContext& ctx, const std::vectorpackage ) ); ImGui::SameLine(); + TextFocused( "Die:", RealToString( tt->die ) ); + ImGui::SameLine(); TextFocused( "Core:", RealToString( tt->core ) ); } TextFocused( "Context switch regions:", RealToString( cpuData[i].cs.size() ) );