LoadedClassChooser() { this.Build(); HeapSnapshotExplorer.PrepareTreeViewForStatisticsDisplay(ClassList); ClassList.NodeSelection.Changed += new EventHandler(OnSelectionChanged); currentSelection = null; }
LoadedClassChooser() { this.Build(); HeapSnapshotExplorer.PrepareTreeViewForStatisticsDisplay (ClassList); ClassList.NodeSelection.Changed += new EventHandler (OnSelectionChanged); currentSelection = null; }
void OnSelectionChanged (object o, System.EventArgs args) { Gtk.NodeSelection selection = (Gtk.NodeSelection) o; HeapSnapshotExplorer.StatisticsNode node = (HeapSnapshotExplorer.StatisticsNode) selection.SelectedNode; if (node != null) { currentSelection = node.Statistics; } else { currentSelection = null; } }
void OnSelectionChanged(object o, System.EventArgs args) { Gtk.NodeSelection selection = (Gtk.NodeSelection)o; HeapSnapshotExplorer.StatisticsNode node = (HeapSnapshotExplorer.StatisticsNode)selection.SelectedNode; if (node != null) { currentSelection = node.Statistics; } else { currentSelection = null; } }
static IHeapItemSetStatisticsSubject ChooseSubject (IHeapItemSetStatisticsBySubject[] subjects, string subjectName) { IHeapItemSetStatisticsSubject result; if (chooser == null) { chooser = new LoadedClassChooser (); } chooser.Title = "Choose " + subjectName; chooser.FillList (subjects); ResponseType response = (ResponseType) chooser.Run (); if (response == ResponseType.Ok) { result = chooser.result; } else { result = null; } chooser.Hide (); return result; }
public StatisticsNode(IHeapItemSetStatisticsBySubject statistics) { this.statistics = statistics; }
void FillList(IHeapItemSetStatisticsBySubject[] statistics) { HeapSnapshotExplorer.FillTreeViewWithStatistics(ClassList, statistics); currentSelection = null; }
public static StackTrace ChooseCallStack (IHeapItemSetStatisticsBySubject[] subjects) { IHeapItemSetStatisticsSubject result = ChooseSubject (subjects, "call stack"); return result as StackTrace; }
public static LoadedMethod ChooseMethod (IHeapItemSetStatisticsBySubject[] subjects) { IHeapItemSetStatisticsSubject result = ChooseSubject (subjects, "method"); return result as LoadedMethod; }
public static LoadedClass ChooseClass (IHeapItemSetStatisticsBySubject[] subjects) { IHeapItemSetStatisticsSubject result = ChooseSubject (subjects, "class"); return result as LoadedClass; }
void FillList (IHeapItemSetStatisticsBySubject[] statistics) { HeapSnapshotExplorer.FillTreeViewWithStatistics (ClassList, statistics); currentSelection = null; }