コード例 #1
0
        public override void OnEnable(IProfilerWindowController profilerWindow)
        {
            base.OnEnable(profilerWindow);

            instance = new WeakReference(this);

            if (m_ReferenceListView == null)
            {
                m_ReferenceListView = new MemoryTreeList(profilerWindow, null);
            }
            if (m_MemoryListView == null)
            {
                m_MemoryListView = new MemoryTreeListClickable(profilerWindow, m_ReferenceListView);
            }
        }
コード例 #2
0
        public override void OnEnable(IProfilerWindowController profilerWindow)
        {
            base.OnEnable(profilerWindow);

            instance = new WeakReference(this);

            if (m_ReferenceListView == null)
            {
                m_ReferenceListView = new MemoryTreeList(profilerWindow, null);
            }
            if (m_MemoryListView == null)
            {
                m_MemoryListView = new MemoryTreeListClickable(profilerWindow, m_ReferenceListView);
            }

            m_ShowDetailedMemoryPane = (ProfilerMemoryView)EditorPrefs.GetInt(k_ViewTypeSettingsKey, (int)ProfilerMemoryView.Simple);
            m_GatherObjectReferences = EditorPrefs.GetBool(k_GatherObjectReferencesSettingsKey, true);
        }
コード例 #3
0
        public override void OnEnable(IProfilerWindowController profilerWindow)
        {
            base.OnEnable(profilerWindow);

            instance = new WeakReference(this);

            if (m_ReferenceListView == null)
            {
                m_ReferenceListView = new MemoryTreeList(profilerWindow, null);
            }
            if (m_MemoryListView == null)
            {
                m_MemoryListView = new MemoryTreeListClickable(profilerWindow, m_ReferenceListView);
            }

            // Automatic Serialization on Domain Reload does not work yet as the base is abstract and the array on the ProfilerWindwo is of type ProfilerModuleBase
            m_ShowDetailedMemoryPane = (ProfilerMemoryView)EditorPrefs.GetInt(k_ViewTypeSettingsKey, (int)ProfilerMemoryView.Simple);
            m_GatherObjectReferences = EditorPrefs.GetBool(k_GatherObjectReferencesSettingsKey, true);
        }
コード例 #4
0
        public override void OnEnable(IProfilerWindowController profilerWindow)
        {
            base.OnEnable(profilerWindow);

            instance = new WeakReference(this);

            if (m_ReferenceListView == null)
            {
                m_ReferenceListView = new MemoryTreeList(profilerWindow, null);
            }
            if (m_MemoryListView == null)
            {
                m_MemoryListView = new MemoryTreeListClickable(profilerWindow, m_ReferenceListView);
            }
            if (m_ViewSplit == null || !m_ViewSplit.IsValid())
            {
                m_ViewSplit = SplitterState.FromRelative(new[] { EditorPrefs.GetFloat(k_SplitterRelative0SettingsKey, 70f), EditorPrefs.GetFloat(k_SplitterRelative1SettingsKey, 30f) }, k_SplitterMinSizes, null);
            }

            m_ShowDetailedMemoryPane = (ProfilerMemoryView)EditorPrefs.GetInt(k_ViewTypeSettingsKey, (int)ProfilerMemoryView.Simple);
            m_GatherObjectReferences = EditorPrefs.GetBool(k_GatherObjectReferencesSettingsKey, true);
        }