Пример #1
0
        private void showObjectsAllocatedBetween_Click(object sender, System.EventArgs e)
        {
            CommentRangeForm commentRangeForm = new CommentRangeForm();
            if (commentRangeForm.ShowDialog() == DialogResult.OK)
            {
                ObjectGraph objectGraph = (ObjectGraph)graph.graphSource;
                Graph g = objectGraph.BuildTypeGraph(commentRangeForm.startTickIndex, commentRangeForm.endTickIndex, ObjectGraph.BuildTypeGraphOptions.LumpBySignature, filterForm);

                string title = string.Format("Live Objects Allocated Between {0} and {1}", commentRangeForm.startComment, commentRangeForm.endComment);
                GraphViewForm graphViewForm = new GraphViewForm(g, title);
                graphViewForm.Visible = true;
            }
        }
Пример #2
0
 private void showWhoAllocatedObjectsBetweenMenuItem_Click(object sender, System.EventArgs e)
 {
     CommentRangeForm commentRangeForm = new CommentRangeForm();
     if (commentRangeForm.ShowDialog() == DialogResult.OK)
     {
         string title = string.Format("Allocation Graph for Live Objects Allocated Between {0} and {1}", commentRangeForm.startComment, commentRangeForm.endComment);
         ShowWhoAllocated(title, commentRangeForm.startTickIndex, commentRangeForm.endTickIndex);
     }        
 }
Пример #3
0
 private void setSelectionMenuItem_Click(object sender, System.EventArgs e)
 {
     CommentRangeForm commentRangeForm = new CommentRangeForm();
     if (commentRangeForm.ShowDialog() == DialogResult.OK)
     {
         SetSelection(commentRangeForm.startTickIndex, commentRangeForm.endTickIndex);
     }                        
 }