mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Implement children messages filtering in zone tooltip.
This commit is contained in:
parent
c44075544a
commit
57f03dfe9a
@ -470,6 +470,7 @@ private:
|
|||||||
bool m_allocTimeRelativeToZone = true;
|
bool m_allocTimeRelativeToZone = true;
|
||||||
bool m_ctxSwitchTimeRelativeToZone = true;
|
bool m_ctxSwitchTimeRelativeToZone = true;
|
||||||
bool m_messageTimeRelativeToZone = true;
|
bool m_messageTimeRelativeToZone = true;
|
||||||
|
bool m_messagesExcludeChildren = true;
|
||||||
uint64_t m_zoneInfoMemPool = 0;
|
uint64_t m_zoneInfoMemPool = 0;
|
||||||
int m_waitStack = 0;
|
int m_waitStack = 0;
|
||||||
int m_waitStackMode = 0;
|
int m_waitStackMode = 0;
|
||||||
|
@ -871,6 +871,8 @@ void View::DrawZoneInfoWindow()
|
|||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
SmallCheckbox( "Time relative to zone start", &m_messageTimeRelativeToZone );
|
SmallCheckbox( "Time relative to zone start", &m_messageTimeRelativeToZone );
|
||||||
|
ImGui::SameLine();
|
||||||
|
SmallCheckbox( "Exclude children", &m_messagesExcludeChildren );
|
||||||
if( ImGui::BeginTable( "##messages", 2, ImGuiTableFlags_ScrollY | ImGuiTableFlags_BordersInnerV, ImVec2( 0, ImGui::GetTextLineHeightWithSpacing() * std::min<int64_t>( msgend-msgit+1, 15 ) ) ) )
|
if( ImGui::BeginTable( "##messages", 2, ImGuiTableFlags_ScrollY | ImGuiTableFlags_BordersInnerV, ImVec2( 0, ImGui::GetTextLineHeightWithSpacing() * std::min<int64_t>( msgend-msgit+1, 15 ) ) ) )
|
||||||
{
|
{
|
||||||
ImGui::TableSetupScrollFreeze( 0, 1 );
|
ImGui::TableSetupScrollFreeze( 0, 1 );
|
||||||
@ -879,6 +881,11 @@ void View::DrawZoneInfoWindow()
|
|||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
if( m_messagesExcludeChildren )
|
||||||
|
{
|
||||||
|
auto msgzone = FindZoneAtTime( tid, (*msgit)->time );
|
||||||
|
if( msgzone != &ev ) continue;
|
||||||
|
}
|
||||||
ImGui::PushID( *msgit );
|
ImGui::PushID( *msgit );
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user