mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Separate callstack table drawing functionality.
This commit is contained in:
parent
c1f6d6c9ce
commit
45df37e3a9
@ -13804,8 +13804,14 @@ void View::DrawCallstackWindow()
|
|||||||
bool show = true;
|
bool show = true;
|
||||||
ImGui::SetNextWindowSize( ImVec2( 1400, 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 );
|
||||||
|
DrawCallstackTable( m_callstackInfoWindow, true );
|
||||||
|
ImGui::End();
|
||||||
|
if( !show ) m_callstackInfoWindow = 0;
|
||||||
|
}
|
||||||
|
|
||||||
auto& cs = m_worker.GetCallstack( m_callstackInfoWindow );
|
void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
||||||
|
{
|
||||||
|
auto& cs = m_worker.GetCallstack( callstack );
|
||||||
if( ClipboardButton() )
|
if( ClipboardButton() )
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::ostringstream s;
|
||||||
@ -13890,7 +13896,7 @@ void View::DrawCallstackWindow()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::RadioButton( "Symbol address", &m_showCallstackFrameAddress, 2 );
|
ImGui::RadioButton( "Symbol address", &m_showCallstackFrameAddress, 2 );
|
||||||
|
|
||||||
if( m_worker.AreCallstackSamplesReady() )
|
if( globalEntriesButton && m_worker.AreCallstackSamplesReady() )
|
||||||
{
|
{
|
||||||
auto frame = m_worker.GetCallstackFrame( *cs.begin() );
|
auto frame = m_worker.GetCallstackFrame( *cs.begin() );
|
||||||
if( frame && frame->data[0].symAddr != 0 )
|
if( frame && frame->data[0].symAddr != 0 )
|
||||||
@ -14126,12 +14132,6 @@ void View::DrawCallstackWindow()
|
|||||||
}
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
}
|
}
|
||||||
ImGui::End();
|
|
||||||
|
|
||||||
if( !show )
|
|
||||||
{
|
|
||||||
m_callstackInfoWindow = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void View::DrawMemoryAllocWindow()
|
void View::DrawMemoryAllocWindow()
|
||||||
|
@ -208,6 +208,7 @@ private:
|
|||||||
void DrawAllocList();
|
void DrawAllocList();
|
||||||
void DrawCompare();
|
void DrawCompare();
|
||||||
void DrawCallstackWindow();
|
void DrawCallstackWindow();
|
||||||
|
void DrawCallstackTable( uint32_t callstack, bool globalEntriesButton );
|
||||||
void DrawMemoryAllocWindow();
|
void DrawMemoryAllocWindow();
|
||||||
void DrawInfo();
|
void DrawInfo();
|
||||||
void DrawTextEditor();
|
void DrawTextEditor();
|
||||||
|
Loading…
Reference in New Issue
Block a user