public ProfilerMemView(ToolStripLabel label, Label stats, ComboBox scale, TabPage memoryPage)
        {
            graph = new MemGraph();
            graph.Dock = DockStyle.Fill;
            memoryPage.Controls.Add(graph);
            graph.BringToFront();

            memLabel = label;
            statsLabel = stats;

            scaleCombo = scale;
            scaleCombo.SelectedIndex = scaleCombo.Items.Count - 1;
            scaleCombo.SelectedIndexChanged += new EventHandler(scaleCombo_SelectedIndexChanged);
            graph.TimeScale = scaleCombo.SelectedIndex + 1;

            Clear();
        }
Example #2
0
        public ProfilerMemView(ToolStripLabel label, Label stats, ComboBox scale, TabPage memoryPage)
        {
            graph      = new MemGraph();
            graph.Dock = DockStyle.Fill;
            memoryPage.Controls.Add(graph);
            graph.BringToFront();

            memLabel   = label;
            statsLabel = stats;

            scaleCombo = scale;
            scaleCombo.SelectedIndex         = scaleCombo.Items.Count - 1;
            scaleCombo.SelectedIndexChanged += new EventHandler(scaleCombo_SelectedIndexChanged);
            graph.TimeScale = scaleCombo.SelectedIndex + 1;

            Clear();
        }