Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 8f41b10

Browse files
author
Eric Abbott
committed
Add IHOP label if ihop is present in totals graph
1 parent cf074d5 commit 8f41b10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gc_log_visualizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def gnuplot(self, name, start, end):
116116
occupancy_threshold_arrow = ""
117117
if self.occupancy_threshold:
118118
occupancy_threshold_arrow = "set arrow 10 from graph 0,first %d to graph 1, first %d nohead; " % (self.occupancy_threshold, self.occupancy_threshold)
119+
occupancy_threshold_arrow += "set label \"IHOP\" at graph 0,first %d offset 1,1; " % (self.occupancy_threshold)
119120

120121
# one capped at .2, other with no yrange
121122
gnuplot_cmd = "gnuplot -e 'set term png size %s; set yrange [0:0.2]; set output \"%s-stw-200ms-cap.png\"; set xdata time; set timefmt \"%%Y-%%m-%%d:%%H:%%M:%%S\"; %s plot \"%s\" using 1:2'" % (self.size, name, xrange, self.pause_file.name)

0 commit comments

Comments
 (0)