Example #1
0
        public BenchmarkOverview(GpuLogger.Benchmark benchmark, GpuLogger.GpuInfo gpuInfo)
        {
            InitializeComponent();

            // Over 9000 means max value
            BenchmarkDetails benchmarkDetails = new BenchmarkDetails(gpuInfo, 9001)
            {
                Dock = DockStyle.Fill
            };

            benchmarkDetails.UpdateStats(benchmark);
            tabDetails.Controls.Add(benchmarkDetails);

            HashChart hashChart = new HashChart(9001)
            {
                Dock = DockStyle.Fill
            };

            hashChart.UpdateCharts(benchmark.HashLogs, benchmark.AvailableTimeStamps);
            tabHashCharts.Controls.Add(hashChart);

            SensorChart sensorChart = new SensorChart(9001)
            {
                Dock = DockStyle.Fill
            };

            sensorChart.UpdateCharts(benchmark.SensorLog, benchmark.AvailableTimeStamps, benchmark.MinerSetup.OperatingSystem);
            tabSensorCharts.Controls.Add(sensorChart);
        }
Example #2
0
        private void UpdateInternalControls()
        {
            foreach (object control in tabGpuDetails.Controls)
            {
                BenchmarkDetails gpuDetails = control as BenchmarkDetails;
                if (gpuDetails != null)
                {
                    gpuDetails.UpdateStats(Gpu.CurrentBenchmark);
                }
            }

            foreach (object control in tabHashCharts.Controls)
            {
                HashChart hashChart = control as HashChart;
                if (hashChart != null)
                {
                    hashChart.UpdateCharts(Gpu.CurrentBenchmark.HashLogs, Gpu.CurrentBenchmark.AvailableTimeStamps);
                }
            }

            foreach (object control in tabSensorCharts.Controls)
            {
                SensorChart sensorChartChart = control as SensorChart;
                if (sensorChartChart != null)
                {
                    sensorChartChart.UpdateCharts(Gpu.CurrentBenchmark.SensorLog,
                                                  Gpu.CurrentBenchmark.AvailableTimeStamps, Gpu.CurrentBenchmark.MinerSetup.OperatingSystem);
                }
            }
        }
Example #3
0
        private void InitCharts()
        {
            HashChart hashChart = new HashChart(1)
            {
                Dock = DockStyle.Fill
            };

            tabHashCharts.Controls.Add(hashChart);

            SensorChart sensorChart = new SensorChart(1)
            {
                Dock = DockStyle.Fill
            };

            tabSensorCharts.Controls.Add(sensorChart);
        }