Commit 709bd70d authored by Doug Smythies's avatar Doug Smythies Committed by Rafael J. Wysocki

tools/power/x86/intel_pstate_tracer: change several graphs to autoscale y-axis

Processors have exceeded some of the fixed y-axis scale maximum values.
Change them to autoscale the y-axis.
Signed-off-by: default avatarDoug Smythies <dsmythies@telus.net>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e749e09d
...@@ -104,7 +104,7 @@ def plot_perf_busy_with_sample(cpu_index): ...@@ -104,7 +104,7 @@ def plot_perf_busy_with_sample(cpu_index):
if os.path.exists(file_name): if os.path.exists(file_name):
output_png = "cpu%03d_perf_busy_vs_samples.png" % cpu_index output_png = "cpu%03d_perf_busy_vs_samples.png" % cpu_index
g_plot = common_all_gnuplot_settings(output_png) g_plot = common_all_gnuplot_settings(output_png)
g_plot('set yrange [0:40]') # autoscale this one, no set y1 range
g_plot('set y2range [0:200]') g_plot('set y2range [0:200]')
g_plot('set y2tics 0, 10') g_plot('set y2tics 0, 10')
g_plot('set title "{} : cpu perf busy vs. sample : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) g_plot('set title "{} : cpu perf busy vs. sample : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
...@@ -125,7 +125,7 @@ def plot_perf_busy(cpu_index): ...@@ -125,7 +125,7 @@ def plot_perf_busy(cpu_index):
if os.path.exists(file_name): if os.path.exists(file_name):
output_png = "cpu%03d_perf_busy.png" % cpu_index output_png = "cpu%03d_perf_busy.png" % cpu_index
g_plot = common_all_gnuplot_settings(output_png) g_plot = common_all_gnuplot_settings(output_png)
g_plot('set yrange [0:40]') # autoscale this one, no set y1 range
g_plot('set y2range [0:200]') g_plot('set y2range [0:200]')
g_plot('set y2tics 0, 10') g_plot('set y2tics 0, 10')
g_plot('set title "{} : perf busy : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) g_plot('set title "{} : perf busy : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
...@@ -144,9 +144,7 @@ def plot_durations(cpu_index): ...@@ -144,9 +144,7 @@ def plot_durations(cpu_index):
if os.path.exists(file_name): if os.path.exists(file_name):
output_png = "cpu%03d_durations.png" % cpu_index output_png = "cpu%03d_durations.png" % cpu_index
g_plot = common_all_gnuplot_settings(output_png) g_plot = common_all_gnuplot_settings(output_png)
# Should autoscale be used here? Should seconds be used here? # autoscale this one, no set y range
g_plot('set yrange [0:5000]')
g_plot('set ytics 0, 500')
g_plot('set title "{} : durations : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) g_plot('set title "{} : durations : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
g_plot('set ylabel "Timer Duration (MilliSeconds)"') g_plot('set ylabel "Timer Duration (MilliSeconds)"')
# override common # override common
...@@ -176,7 +174,7 @@ def plot_pstate_cpu_with_sample(): ...@@ -176,7 +174,7 @@ def plot_pstate_cpu_with_sample():
if os.path.exists('cpu.csv'): if os.path.exists('cpu.csv'):
output_png = 'all_cpu_pstates_vs_samples.png' output_png = 'all_cpu_pstates_vs_samples.png'
g_plot = common_all_gnuplot_settings(output_png) g_plot = common_all_gnuplot_settings(output_png)
g_plot('set yrange [0:40]') # autoscale this one, no set y range
# override common # override common
g_plot('set xlabel "Samples"') g_plot('set xlabel "Samples"')
g_plot('set ylabel "P-State"') g_plot('set ylabel "P-State"')
...@@ -191,7 +189,7 @@ def plot_pstate_cpu(): ...@@ -191,7 +189,7 @@ def plot_pstate_cpu():
output_png = 'all_cpu_pstates.png' output_png = 'all_cpu_pstates.png'
g_plot = common_all_gnuplot_settings(output_png) g_plot = common_all_gnuplot_settings(output_png)
g_plot('set yrange [0:40]') # autoscale this one, no set y range
g_plot('set ylabel "P-State"') g_plot('set ylabel "P-State"')
g_plot('set title "{} : cpu pstates : {:%F %H:%M}"'.format(testname, datetime.now())) g_plot('set title "{} : cpu pstates : {:%F %H:%M}"'.format(testname, datetime.now()))
...@@ -222,7 +220,7 @@ def plot_frequency_cpu(): ...@@ -222,7 +220,7 @@ def plot_frequency_cpu():
output_png = 'all_cpu_frequencies.png' output_png = 'all_cpu_frequencies.png'
g_plot = common_all_gnuplot_settings(output_png) g_plot = common_all_gnuplot_settings(output_png)
g_plot('set yrange [0:4]') # autoscale this one, no set y range
g_plot('set ylabel "CPU Frequency (GHz)"') g_plot('set ylabel "CPU Frequency (GHz)"')
g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(testname, datetime.now())) g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(testname, datetime.now()))
...@@ -236,7 +234,7 @@ def plot_duration_cpu(): ...@@ -236,7 +234,7 @@ def plot_duration_cpu():
output_png = 'all_cpu_durations.png' output_png = 'all_cpu_durations.png'
g_plot = common_all_gnuplot_settings(output_png) g_plot = common_all_gnuplot_settings(output_png)
g_plot('set yrange [0:5000]') # autoscale this one, no set y range
g_plot('set ytics 0, 500') g_plot('set ytics 0, 500')
g_plot('set ylabel "Timer Duration (MilliSeconds)"') g_plot('set ylabel "Timer Duration (MilliSeconds)"')
g_plot('set title "{} : cpu durations : {:%F %H:%M}"'.format(testname, datetime.now())) g_plot('set title "{} : cpu durations : {:%F %H:%M}"'.format(testname, datetime.now()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment