mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add function name grouping controls.
This commit is contained in:
parent
7aa24864bf
commit
044b7e1522
@ -8037,6 +8037,7 @@ void View::DrawMemory()
|
||||
if( ImGui::TreeNode( "Bottom-up call stack tree" ) )
|
||||
#endif
|
||||
{
|
||||
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp );
|
||||
ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." );
|
||||
ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
||||
|
||||
@ -8056,6 +8057,7 @@ void View::DrawMemory()
|
||||
if( ImGui::TreeNode( "Top-down call stack tree" ) )
|
||||
#endif
|
||||
{
|
||||
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameTopDown );
|
||||
ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." );
|
||||
ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." );
|
||||
|
||||
|
||||
@ -295,6 +295,9 @@ private:
|
||||
float m_notificationTime = 0;
|
||||
std::string m_notificationText;
|
||||
|
||||
bool m_groupCallstackTreeByNameBottomUp = false;
|
||||
bool m_groupCallstackTreeByNameTopDown = false;
|
||||
|
||||
struct FindZone {
|
||||
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
|
||||
enum class GroupBy : int { Thread, UserText, Callstack };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user