Example #1
0
        public AbstractManagedObjectsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
            : base(window, editorPrefsKey, state, new MultiColumnHeader(
                       new MultiColumnHeaderState(new[]
        {
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("C# Type"), width = 250, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("C++ Name", "If the C# object has a C++ counterpart, display its C++ object name in this column."), width = 150, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Size"), width = 80, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Count"), width = 80, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Address"), width = 120, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Assembly"), width = 120, autoResize = true },
        })))
        {
            multiColumnHeader.canSort = true;

            Reload();
        }
Example #2
0
        public AbstractTreeView(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state, MultiColumnHeader multiColumnHeader)
            : base(state, multiColumnHeader)
        {
            this.window      = window;
            m_EditorPrefsKey = editorPrefsKey;

            rowHeight = 20;
            showAlternatingRowBackgrounds = true;
            showBorder = false;
            columnIndexForTreeFoldouts   = 0;
            extraSpaceBeforeIconAndLabel = 0;
            baseIndent = 0;

            multiColumnHeader.sortingChanged += OnSortingChanged;

            LoadLayout();
        }
Example #3
0
        public ManagedHeapSectionsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
            : base(window, editorPrefsKey, state, new MultiColumnHeader(
                       new MultiColumnHeaderState(new[]
        {
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Address"), width = 300, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Size"), width = 120, autoResize = true },
#if HEAPEXPLORER_DISPLAY_REFS
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Refs"), width = 120, autoResize = true },
#endif
        })))
        {
            extraSpaceBeforeIconAndLabel = 4;
            columnIndexForTreeFoldouts   = 0;
            multiColumnHeader.canSort    = true;

            Reload();
        }
        public CompareSnapshotsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
            : base(window, editorPrefsKey, state, new MultiColumnHeader(
                       new MultiColumnHeaderState(new[]
        {
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Type"), width = 300, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Size (A)"), width = 100, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Size (B)"), width = 100, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Size delta (B-A)"), width = 120, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Count (A)"), width = 100, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Count (B)"), width = 100, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Count delta (B-A)"), width = 120, autoResize = true },
        })))
        {
            multiColumnHeader.canSort = true;

            Reload();
        }
Example #5
0
        public NativeObjectsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
            : base(window, editorPrefsKey, state, new MultiColumnHeader(
                       new MultiColumnHeaderState(new[]
        {
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Type"), width = 250, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Name"), width = 250, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Size"), width = 80, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Count"), width = 50, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("DDoL", "Don't Destroy on Load\nHas this object has been marked as DontDestroyOnLoad?"), width = 50, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Persistent", "Is this object persistent?\nAssets are persistent, objects stored in scenes are persistent, dynamically created objects are not."), width = 50, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Address"), width = 120, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("InstanceID", "InstanceID"), width = 120, autoResize = true },
#if HEAPEXPLORER_DISPLAY_REFS
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("Refs", "Refereces Count"), width = 50, autoResize = true },
            new MultiColumnHeaderState.Column() { headerContent = new GUIContent("RefBy", "ReferencedBy Count"), width = 50, autoResize = true },
#endif
        })))
        {
            multiColumnHeader.canSort = true;

            Reload();
        }
 static void Register()
 {
     HeapExplorerWindow.Register <ManagedHeapSectionsView>();
 }
Example #7
0
 public ManagedDelegateTargetsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
     : base(window, editorPrefsKey, state)
 {
 }
Example #8
0
 static void Register()
 {
     HeapExplorerWindow.Register <ManagedObjectsView>();
 }
Example #9
0
 static void Register()
 {
     HeapExplorerWindow.Register <ManagedDelegateTargetsView>();
 }
 public ManagedObjectDuplicatesControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
     : base(window, editorPrefsKey, state)
 {
 }
Example #11
0
 static void Register()
 {
     HeapExplorerWindow.Register <GCHandlesView>();
 }
Example #12
0
 static void Register()
 {
     HeapExplorerWindow.Register <NativeObjectDuplicatesView>();
 }
Example #13
0
 static void Register()
 {
     HeapExplorerWindow.Register <CompareSnapshotsView>();
 }
 public ManagedEmptyShellObjectsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
     : base(window, editorPrefsKey, state)
 {
 }
Example #15
0
 static void Register()
 {
     HeapExplorerWindow.Register <StaticFieldsView>();
 }
Example #16
0
 static void Register()
 {
     HeapExplorerWindow.Register <CsvExportView>();
 }
 static void Register()
 {
     HeapExplorerWindow.Register <OverviewView>();
 }
Example #18
0
 static void Register()
 {
     HeapExplorerWindow.Register <WelcomeView>();
 }