Exemple #1
0
        protected void DiffLoaded(HeapDiff diff, string filename)
        {
            Modules        = diff.Modules;
            FunctionNames  = diff.FunctionNames;
            Deltas         = diff.Deltas;
            FilteredDeltas = null;
            StackGraph     = null;

            TracebackFilter.AutoCompleteItems = FunctionNames;

            Text     = "Diff Viewer - " + filename;
            Filename = filename;

            RefreshModules();

            if (PendingRefresh != null)
            {
                PendingRefresh.Dispose();
            }
            PendingRefresh = Start(RefreshDeltas());

            MainMenuStrip.Enabled = true;
            LoadingPanel.Visible  = false;
            MainSplit.Visible     = true;
            Timeline.Enabled      = true;
            UseWaitCursor         = false;
        }
Exemple #2
0
        protected IEnumerator <object> GenerateNewGraph(List <DeltaInfo> newListItems, GraphKeyType keyType)
        {
            var newGraph = new StackGraph(keyType);

            yield return(newGraph.Build(Instance, newListItems));

            StackGraph           = newGraph;
            GraphHistogram.Items = StackGraph.Functions.OrderedItems.ToArray();
            GraphTreemap.Items   = StackGraph.OrderedItems.ToArray();

            GraphHistogram.Invalidate();
            GraphTreemap.Refresh();
        }