Skip to content

Commit

Permalink
Adjust group naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrob committed Mar 23, 2022
1 parent 26b1a4b commit 00d0767
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/PerfView/PerfViewData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7008,10 +7008,10 @@ protected override Action<Action> OpenImpl(Window parentWindow, StatusBar worker
}
}

var advanced = new PerfViewTreeGroup("Advanced Group");
var memory = new PerfViewTreeGroup("Memory Group");
var obsolete = new PerfViewTreeGroup("Old Group");
var experimental = new PerfViewTreeGroup("Experimental Group");
var advanced = new PerfViewTreeGroup("Advanced");
var memory = new PerfViewTreeGroup("Memory");
var frameworkAspNetWcf = new PerfViewTreeGroup(".NET Framework ASP.NET/WCF");
var experimental = new PerfViewTreeGroup("Experimental");
m_Children = new List<PerfViewTreeItem>();

bool hasCPUStacks = false;
Expand Down Expand Up @@ -7352,15 +7352,15 @@ protected override Action<Action> OpenImpl(Window parentWindow, StatusBar worker
{
if (hasCPUStacks)
{
obsolete.Children.Add(new PerfViewStackSource(this, "Server Request CPU"));
frameworkAspNetWcf.Children.Add(new PerfViewStackSource(this, "Server Request CPU"));
}
if (hasCSwitchStacks)
{
obsolete.Children.Add(new PerfViewStackSource(this, "Server Request Thread Time"));
frameworkAspNetWcf.Children.Add(new PerfViewStackSource(this, "Server Request Thread Time"));
}
if (hasGCAllocationTicks)
{
obsolete.Children.Add(new PerfViewStackSource(this, "Server Request Managed Allocation"));
frameworkAspNetWcf.Children.Add(new PerfViewStackSource(this, "Server Request Managed Allocation"));
}
}

Expand All @@ -7387,14 +7387,14 @@ protected override Action<Action> OpenImpl(Window parentWindow, StatusBar worker
var name = "ASP.NET Thread Time";
if (hasCSwitchStacks && hasTplStacks)
{
obsolete.Children.Add(new PerfViewStackSource(this, "ASP.NET Thread Time (with Tasks)"));
frameworkAspNetWcf.Children.Add(new PerfViewStackSource(this, "ASP.NET Thread Time (with Tasks)"));
}
else if (!hasCSwitchStacks)
{
name += " (CPU ONLY)";
}

obsolete.Children.Add(new PerfViewStackSource(this, name));
frameworkAspNetWcf.Children.Add(new PerfViewStackSource(this, name));
}
}

Expand Down Expand Up @@ -7447,9 +7447,9 @@ protected override Action<Action> OpenImpl(Window parentWindow, StatusBar worker
m_Children.Add(advanced);
}

if (0 < obsolete.Children.Count)
if (0 < frameworkAspNetWcf.Children.Count)
{
m_Children.Add(obsolete);
m_Children.Add(frameworkAspNetWcf);
}

if (AppLog.InternalUser && 0 < experimental.Children.Count)
Expand Down

0 comments on commit 00d0767

Please sign in to comment.