mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display module name in callstack window.
This commit is contained in:
parent
eb7e8162ff
commit
8f36ee2c89
@ -11117,7 +11117,7 @@ void View::DrawStatistics()
|
|||||||
void View::DrawCallstackWindow()
|
void View::DrawCallstackWindow()
|
||||||
{
|
{
|
||||||
bool show = true;
|
bool show = true;
|
||||||
ImGui::SetNextWindowSize( ImVec2( 1200, 500 ), ImGuiCond_FirstUseEver );
|
ImGui::SetNextWindowSize( ImVec2( 1400, 500 ), ImGuiCond_FirstUseEver );
|
||||||
ImGui::Begin( "Call stack", &show, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse );
|
ImGui::Begin( "Call stack", &show, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse );
|
||||||
|
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
@ -11132,13 +11132,14 @@ void View::DrawCallstackWindow()
|
|||||||
ImGui::BeginChild( "##callstack" );
|
ImGui::BeginChild( "##callstack" );
|
||||||
const auto w = ImGui::GetWindowWidth();
|
const auto w = ImGui::GetWindowWidth();
|
||||||
static bool widthSet = false;
|
static bool widthSet = false;
|
||||||
ImGui::Columns( 3 );
|
ImGui::Columns( 4 );
|
||||||
if( !widthSet )
|
if( !widthSet )
|
||||||
{
|
{
|
||||||
widthSet = true;
|
widthSet = true;
|
||||||
ImGui::SetColumnWidth( 0, w * 0.05f );
|
ImGui::SetColumnWidth( 0, w * 0.05f );
|
||||||
ImGui::SetColumnWidth( 1, w * 0.475f );
|
ImGui::SetColumnWidth( 1, w * 0.425f );
|
||||||
ImGui::SetColumnWidth( 2, w * 0.475f );
|
ImGui::SetColumnWidth( 2, w * 0.425f );
|
||||||
|
ImGui::SetColumnWidth( 3, w * 0.1f );
|
||||||
}
|
}
|
||||||
ImGui::TextUnformatted( "Frame" );
|
ImGui::TextUnformatted( "Frame" );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
@ -11150,6 +11151,8 @@ void View::DrawCallstackWindow()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
DrawHelpMarker( "Click on entry to copy it to clipboard.\nRight click on entry to try to open source file." );
|
DrawHelpMarker( "Click on entry to copy it to clipboard.\nRight click on entry to try to open source file." );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
ImGui::TextUnformatted( "Image" );
|
||||||
|
ImGui::NextColumn();
|
||||||
|
|
||||||
int fidx = 0;
|
int fidx = 0;
|
||||||
int bidx = 0;
|
int bidx = 0;
|
||||||
@ -11170,6 +11173,7 @@ void View::DrawCallstackWindow()
|
|||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
ImGui::NextColumn();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -11284,6 +11288,11 @@ void View::DrawCallstackWindow()
|
|||||||
}
|
}
|
||||||
ImGui::PopTextWrapPos();
|
ImGui::PopTextWrapPos();
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
if( frameData->imageName.Active() )
|
||||||
|
{
|
||||||
|
TextDisabledUnformatted( m_worker.GetString( frameData->imageName ) );
|
||||||
|
}
|
||||||
|
ImGui::NextColumn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user