Add children locations grouping button.

This commit is contained in:
Bartosz Taudul 2019-02-10 16:14:13 +01:00
parent b7bd3696b7
commit 740486a0ce
2 changed files with 4 additions and 0 deletions

View File

@ -4146,6 +4146,9 @@ void View::DrawZoneInfoWindow()
ImGui::TextDisabled( "(%s)", RealToString( children.size(), true ) ); ImGui::TextDisabled( "(%s)", RealToString( children.size(), true ) );
if( expand ) if( expand )
{ {
ImGui::SameLine();
if( ImGui::SmallButton( m_groupChildrenLocations ? "Display all children separate" : "Group children locations" ) ) m_groupChildrenLocations = !m_groupChildrenLocations;
auto ctt = std::make_unique<uint64_t[]>( children.size() ); auto ctt = std::make_unique<uint64_t[]>( children.size() );
auto cti = std::make_unique<uint32_t[]>( children.size() ); auto cti = std::make_unique<uint32_t[]>( children.size() );
uint64_t ctime = 0; uint64_t ctime = 0;

View File

@ -270,6 +270,7 @@ private:
bool m_statSelf = false; bool m_statSelf = false;
bool m_showCallstackFrameAddress = false; bool m_showCallstackFrameAddress = false;
bool m_showUnknownFrames = true; bool m_showUnknownFrames = true;
bool m_groupChildrenLocations = false;
ShortcutAction m_shortcut = ShortcutAction::None; ShortcutAction m_shortcut = ShortcutAction::None;
Namespace m_namespace = Namespace::Full; Namespace m_namespace = Namespace::Full;