mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Package/core tooltip cosmetics.
This commit is contained in:
parent
c43bd2bfe2
commit
2377911313
@ -4686,13 +4686,16 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover,
|
|||||||
{
|
{
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
TextFocused( "CPU:", RealToString( i, true ) );
|
||||||
if( tt )
|
if( tt )
|
||||||
{
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::SameLine();
|
||||||
TextFocused( "Package:", RealToString( tt->package, true ) );
|
TextFocused( "Package:", RealToString( tt->package, true ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextFocused( "Core:", RealToString( tt->core, true ) );
|
TextFocused( "Core:", RealToString( tt->core, true ) );
|
||||||
}
|
}
|
||||||
TextFocused( "CPU:", RealToString( i, true ) );
|
|
||||||
TextFocused( "Context switch regions:", RealToString( num, true ) );
|
TextFocused( "Context switch regions:", RealToString( num, true ) );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
TextFocused( "Start time:", TimeToString( start ) );
|
TextFocused( "Start time:", TimeToString( start ) );
|
||||||
@ -4797,13 +4800,16 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover,
|
|||||||
m_drawThreadHighlight = thread;
|
m_drawThreadHighlight = thread;
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
TextFocused( "CPU:", RealToString( i, true ) );
|
||||||
if( tt )
|
if( tt )
|
||||||
{
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::SameLine();
|
||||||
TextFocused( "Package:", RealToString( tt->package, true ) );
|
TextFocused( "Package:", RealToString( tt->package, true ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextFocused( "Core:", RealToString( tt->core, true ) );
|
TextFocused( "Core:", RealToString( tt->core, true ) );
|
||||||
}
|
}
|
||||||
TextFocused( "CPU:", RealToString( i, true ) );
|
|
||||||
if( local )
|
if( local )
|
||||||
{
|
{
|
||||||
TextFocused( "Program:", m_worker.GetCaptureProgram().c_str() );
|
TextFocused( "Program:", m_worker.GetCaptureProgram().c_str() );
|
||||||
@ -4872,13 +4878,16 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover,
|
|||||||
{
|
{
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
TextFocused( "CPU:", RealToString( i, true ) );
|
||||||
if( tt )
|
if( tt )
|
||||||
{
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::SameLine();
|
||||||
TextFocused( "Package:", RealToString( tt->package, true ) );
|
TextFocused( "Package:", RealToString( tt->package, true ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextFocused( "Core:", RealToString( tt->core, true ) );
|
TextFocused( "Core:", RealToString( tt->core, true ) );
|
||||||
}
|
}
|
||||||
TextFocused( "CPU:", RealToString( i, true ) );
|
|
||||||
TextFocused( "Context switch regions:", RealToString( cs.size(), true ) );
|
TextFocused( "Context switch regions:", RealToString( cs.size(), true ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
ImGui::PushFont( m_smallFont );
|
ImGui::PushFont( m_smallFont );
|
||||||
|
Loading…
Reference in New Issue
Block a user