예제 #1
0
        public void OpenSnapshots(IEnumerable <string> filenames)
        {
            DisposeInstance();

            Instance = HeapRecording.FromSnapshots(
                Scheduler, Activities, filenames.OrderBy((f) => f)
                );
            SubscribeToEvents(Instance);

            RefreshStatus();
            RefreshSnapshots();
        }
예제 #2
0
        public void OpenSnapshots(IEnumerable <string> filenames)
        {
            DisposeInstance();

            Instance = HeapRecording.FromSnapshots(
                Scheduler, Activities, filenames.OrderBy((f) => f)
                );
            Instance.StatusChanged    += (s, _) => RefreshStatus();
            Instance.SnapshotsChanged += (s, _) => RefreshSnapshots();

            RefreshStatus();
            RefreshSnapshots();
        }