Ejemplo n.º 1
0
 LoadedClassChooser()
 {
     this.Build();
     HeapSnapshotExplorer.PrepareTreeViewForStatisticsDisplay(ClassList);
     ClassList.NodeSelection.Changed += new EventHandler(OnSelectionChanged);
     currentSelection = null;
 }
Ejemplo n.º 2
0
 public HeapExplorerTreeModel(SeekableLogFileReader reader, HeapSnapshotExplorer explorer)
 {
     model = new TreeStore(new Type [] { typeof(INode) });
     heapEventProcessor = new HeapEventProcessor();
     this.reader        = reader;
     this.explorer      = explorer;
     rootNodes          = new List <IRootNode> ();
 }
Ejemplo n.º 3
0
            public StatisticsNodeMenuHandlerForCallStacks(HeapSnapshotExplorer explorer) : base(explorer)
            {
                menu = new Menu();
                MenuItem menuItem;

                menuItem            = new MenuItem("Filter current set by this call stack");
                menuItem.Activated += delegate(object sender, EventArgs e) {
                    FilterCurrentSetByCurrentCallStack();
                };
                menu.Add(menuItem);
                menu.ShowAll();
            }
Ejemplo n.º 4
0
            public StatisticsNodeMenuHandlerForClasses(HeapSnapshotExplorer explorer) : base(explorer)
            {
                menu = new Menu();
                MenuItem menuItem;

                menuItem            = new MenuItem("Filter current set by this class");
                menuItem.Activated += delegate(object sender, EventArgs e) {
                    FilterCurrentSetByCurrentClass();
                };
                menu.Add(menuItem);
                menuItem            = new MenuItem("Show statistics by caller method");
                menuItem.Activated += delegate(object sender, EventArgs e) {
                    explorer.FillStatisticsListWithMethodData();
                };
                menu.Add(menuItem);
                menu.ShowAll();
            }
Ejemplo n.º 5
0
 protected StatisticsNodeMenuHandler(HeapSnapshotExplorer explorer)
 {
     this.explorer = explorer;
 }
Ejemplo n.º 6
0
 void FillList(IHeapItemSetStatisticsBySubject[] statistics)
 {
     HeapSnapshotExplorer.FillTreeViewWithStatistics(ClassList, statistics);
     currentSelection = null;
 }