void OnEnable()
        {
            if (_treeMapView == null)
            {
                _treeMapView = new TreeMapView();
            }

            if (!_registered)
            {
                UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived += OnSnapshotReceived;
                _registered = true;
            }

            if (_tableBrowser == null)
            {
                _tableBrowser = new MemTableBrowser(this);
            }

            var savedProfilerIP = EditorPrefs.GetString("ConnectIP");

            if (!string.IsNullOrEmpty(savedProfilerIP))
            {
                lastLoginIP = savedProfilerIP;
            }

            if (PANetDrv.Instance == null)
            {
                PANetDrv.Instance = new PANetDrv();
            }

            clearSnapshotChunk();
            //connectEditor();
        }
Ejemplo n.º 2
0
        void OnEnable()
        {
            if (_treeMapView == null)
            {
                _treeMapView = new TreeMapView();
            }

            if (_tableBrowser == null)
            {
                _tableBrowser = new MemTableBrowser(this);
            }
        }
Ejemplo n.º 3
0
        public void Initialize()
        {
            if (_treeMapView == null)
            {
                _treeMapView = new TreeMapView();
            }

            if (!_registered)
            {
                UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived += IncomingSnapshot;
                _registered = true;
            }

            if (_unpackedCrawl == null && _packedCrawled != null && _packedCrawled.valid)
            {
                Unpack();
            }
        }
Ejemplo n.º 4
0
        void OnEnable()
        {
            if (_treeMapView == null)
            {
                _treeMapView = new TreeMapView();
            }

            if (!_registered)
            {
                UnityEditor.MemoryProfiler.MemorySnapshot.OnSnapshotReceived += IncomingSnapshotByBtn;
                _registered = true;
            }

            if (_tableBrowser == null)
            {
                _tableBrowser = new MemTableBrowser(this);
            }
            clearSnapshotChunk();
        }