コード例 #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();
        }
コード例 #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();
        }
コード例 #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();
        }
コード例 #4
0
        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();
        }
コード例 #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();
        }
コード例 #6
0
 static void Register()
 {
     HeapExplorerWindow.Register <ManagedHeapSectionsView>();
 }
コード例 #7
0
 public ManagedDelegateTargetsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
     : base(window, editorPrefsKey, state)
 {
 }
コード例 #8
0
 static void Register()
 {
     HeapExplorerWindow.Register <ManagedObjectsView>();
 }
コード例 #9
0
 static void Register()
 {
     HeapExplorerWindow.Register <ManagedDelegateTargetsView>();
 }
コード例 #10
0
 public ManagedObjectDuplicatesControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
     : base(window, editorPrefsKey, state)
 {
 }
コード例 #11
0
 static void Register()
 {
     HeapExplorerWindow.Register <GCHandlesView>();
 }
コード例 #12
0
 static void Register()
 {
     HeapExplorerWindow.Register <NativeObjectDuplicatesView>();
 }
コード例 #13
0
 static void Register()
 {
     HeapExplorerWindow.Register <CompareSnapshotsView>();
 }
コード例 #14
0
 public ManagedEmptyShellObjectsControl(HeapExplorerWindow window, string editorPrefsKey, TreeViewState state)
     : base(window, editorPrefsKey, state)
 {
 }
コード例 #15
0
 static void Register()
 {
     HeapExplorerWindow.Register <StaticFieldsView>();
 }
コード例 #16
0
 static void Register()
 {
     HeapExplorerWindow.Register <CsvExportView>();
 }
コード例 #17
0
 static void Register()
 {
     HeapExplorerWindow.Register <OverviewView>();
 }
コード例 #18
0
 static void Register()
 {
     HeapExplorerWindow.Register <WelcomeView>();
 }