Exemplo n.º 1
0
 public void OnFilterByIsReferencedByObjectOfClass()
 {
     HeapExplorerTreeModel.Node <HeapObject> node = CurrentSelection as HeapExplorerTreeModel.Node <HeapObject>;
     if (node != null)
     {
         LoadedClass c = LoadedClassChooser.ChooseClass(node.Root.Items.ClassStatistics);
         if (c != null)
         {
             IHeapObjectFilter filter = new HeapObjectIsReferencedByObjectOfClass(c);
             node.Filter(filter);
         }
     }
 }
Exemplo n.º 2
0
 public void OnFilterByClass <HI> () where HI : IHeapItem
 {
     HeapExplorerTreeModel.Node <HI> node = CurrentSelection as HeapExplorerTreeModel.Node <HI>;
     if (node != null)
     {
         LoadedClass c = LoadedClassChooser.ChooseClass(CurrentSelection.Items.ClassStatistics);
         if (c != null)
         {
             HeapItemIsOfClass <HI> filter = new HeapItemIsOfClass <HI> (c);
             node.Filter(filter);
         }
     }
 }
Exemplo n.º 3
0
		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;
		}
Exemplo n.º 4
0
        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);
        }