3 instantiations of ActivityLevel
Roslyn.VisualStudio.DiagnosticsWindow (3)
PerfMargin\DataModel.cs (3)
28
var root = new
ActivityLevel
("All");
39
parent = new
ActivityLevel
(featureName, root, createChildList: true);
43
builder.SetItem(value, new
ActivityLevel
(name, parent, createChildList: false));
18 references to ActivityLevel
Roslyn.VisualStudio.DiagnosticsWindow (18)
PerfMargin\ActivityLevel.cs (6)
23
private readonly List<
ActivityLevel
> _children;
24
private readonly
ActivityLevel
_parent;
32
public ActivityLevel(string name,
ActivityLevel
parent, bool createChildList)
77
_children.Sort(new Comparison<
ActivityLevel
>((a, b) => string.CompareOrdinal(a.Name, b.Name)));
78
foreach (
var
child in _children)
90
public IReadOnlyCollection<
ActivityLevel
> Children
PerfMargin\DataModel.cs (6)
15
public
ActivityLevel
RootNode { get; }
17
private readonly ImmutableArray<
ActivityLevel
?> _activities;
25
using var _ = ArrayBuilder<
ActivityLevel
?>.GetInstance(out var builder);
27
var features = new Dictionary<string,
ActivityLevel
>();
28
var
root = new ActivityLevel("All");
37
if (!features.TryGetValue(featureName, out
var
parent))
PerfMargin\PerfMarginPanel.cs (4)
43
_mainListView = CreateContent(new
ActivityLevel
[] { s_model.RootNode }.Concat(s_model.RootNode.Children), useWrapPanel: true);
87
private ListView CreateContent(IEnumerable<
ActivityLevel
> items, bool useWrapPanel)
91
foreach (
var
item in items)
147
if (selectedItem.Tag is
ActivityLevel
context && context.Children != null && context.Children.Any())
PerfMargin\StatusIndicator.xaml.cs (2)
20
private readonly
ActivityLevel
_activityLevel;
23
internal StatusIndicator(
ActivityLevel
activityLevel)