Commits

Stefan Saasen committed 2c042ac

Use a single gnuplot file per input data file

Comments (0)

Files changed (6)

gnuplot/generate-git-ops-plot-caching-fetch.plot

-# 2012-08-22 18:32:08 6
-set datafile separator "|"
-set terminal png size 1400,1000
-set xdata time
-set timefmt "%Y-%m-%d %H"
-set output "git-ops-caching-fetch.png"
-# time range must be in same format as data file
-#set xrange ["Mar-25-00:00:00":"Mar-26-00:00:00"]
-set yrange [0:*]
-
-set grid
-set xlabel "Date"
-set ylabel "Git operations"
-set title "Git operations per hour (cache hit/miss)"
-set format x "%d %b"
-set key left top reverse Left
-#  0: Date
-#  1-6: clone, fetch, shallow clone, push, ref advertisement (sum cache hit & cache miss)
-#  7-11: cache hits
-#  12-16: cache miss'
-plot    "plot-git-ops" using 1:8 with lines title "fetch (hit)", \
-        "plot-git-ops" using 1:13 with lines title "fetch (miss)"

gnuplot/generate-git-ops-plot-caching.plot

-# 2012-08-22 18:32:08 6
-set datafile separator "|"
-set terminal png size 1400,1000
-set xdata time
-set timefmt "%Y-%m-%d %H"
-set output "git-ops-caching.png"
-# time range must be in same format as data file
-#set xrange ["Mar-25-00:00:00":"Mar-26-00:00:00"]
-set yrange [0:*]
-
-set grid
-set xlabel "Date"
-set ylabel "Git operations"
-set title "Git operations per hour (cache hit/miss)"
-set format x "%d %b"
-set key left top reverse Left
-#  0: Date
-#  1-6: clone, fetch, shallow clone, push, ref advertisement (sum cache hit & cache miss)
-#  7-11: cache hits
-#  12-16: cache miss'
-plot    "plot-git-ops" using 1:7 with lines title "clone (hit)", \
-        "plot-git-ops" using 1:9 with lines title "shallow clone (hit)", \
-        "plot-git-ops" using 1:10 with lines title "push (hit)", \
-        "plot-git-ops" using 1:12 with lines title "clone (miss)", \
-        "plot-git-ops" using 1:14 with lines title "shallow clone (miss)", \
-        "plot-git-ops" using 1:15 with lines title "push (miss)"

gnuplot/generate-git-ops-plot.plot

 set terminal png size 1400,1000
 set xdata time
 set timefmt "%Y-%m-%d %H"
-set output "git-ops.png"
-# time range must be in same format as data file
-#set xrange ["Mar-25-00:00:00":"Mar-26-00:00:00"]
 set yrange [0:*]
-#set autoscale ymax
-
-set ytics nomirror
-set y2tics
 
 set grid
 set xlabel "Date"
 set ylabel "Git operations"
-set y2label "Ref advertisement"
-set title "Git operations per hour"
 set format x "%d %b"
 set key left top reverse Left
+
+# ===================================================================================
+
+set output "git-ops.png"
+set title "Git operations per hour"
 #  0: Date
 #  1-6: clone, fetch, shallow clone, push, ref advertisement (sum cache hit & cache miss)
 #  7-11: cache hits
         "plot-git-ops" using 1:3 with lines title "fetch", \
         "plot-git-ops" using 1:4 with lines title "shallow clone", \
         "plot-git-ops" using 1:5 with lines title "push"
+
+# ===================================================================================
+
+set output "git-ops-caching-fetch.png"
+set title "Git operations per hour (cache hit/miss)"
+
+plot    "plot-git-ops" using 1:3 with lines title "fetch", \
+        "plot-git-ops" using 1:8 with lines title "fetch (hit)", \
+        "plot-git-ops" using 1:13 with lines title "fetch (miss)"
+
+# ===================================================================================
+
+set output "git-ops-caching.png"
+plot    "plot-git-ops" using 1:7 with lines title "clone (hit)", \
+        "plot-git-ops" using 1:9 with lines title "shallow clone (hit)", \
+        "plot-git-ops" using 1:10 with lines title "push (hit)", \
+        "plot-git-ops" using 1:12 with lines title "clone (miss)", \
+        "plot-git-ops" using 1:14 with lines title "shallow clone (miss)", \
+        "plot-git-ops" using 1:15 with lines title "push (miss)"
+
+# ===================================================================================
+
+set output "git-ops-ref-advertisement.png"
+plot    "plot-git-ops" using 1:6 with lines title "ref advertisement", \
+        "plot-git-ops" using 1:11 with lines title "ref advertisement (hit)", \
+        "plot-git-ops" using 1:16 with lines title "ref advertisement (miss)"

gnuplot/generate-git-protocol.plot

 # 2012-08-22 18:32:08 6
 set datafile separator "|"
-set terminal png size 1400,1000 font "/Library/Fonts/Arial.ttf"
+set terminal png size 1400,1000
 set xdata time
 set logscale y
 set timefmt "%Y-%m-%d %H"
 set output "git-protocol.png"
-# time range must be in same format as data file
-#set xrange ["Mar-25-00:00:00":"Mar-26-00:00:00"]
 set yrange [1:*]
-#set autoscale ymax
 
 set ytics nomirror
 
 set title "Git protocol usage per hour"
 set format x "%d %b"
 set key left top reverse Left
-#  0: Date
-#  1-6: clone, fetch, shallow clone, push, ref advertisement (sum cache hit & cache miss)
-#  7-11: cache hits
-#  12-16: cache miss'
+
 plot    "protocol-stats" using 1:2 with lines title "ssh", \
         "protocol-stats" using 1:3 with lines title "http(s)"

gnuplot/generate-git-ref-advertisement-plot.plot

-# 2012-08-22 18:32:08 6
-set datafile separator "|"
-set terminal png size 1400,1000
-set xdata time
-set timefmt "%Y-%m-%d %H"
-set output "git-ops-ref-advertisement.png"
-# time range must be in same format as data file
-#set xrange ["Mar-25-00:00:00":"Mar-26-00:00:00"]
-set yrange [0:*]
-#set autoscale ymax
-
-set ytics nomirror
-set y2tics
-
-set grid
-set xlabel "Date"
-set ylabel "Git operations"
-set y2label "Ref advertisement"
-set title "Git operations per hour"
-set format x "%d %b"
-set key left top reverse Left
-#  0: Date
-#  1-6: clone, fetch, shallow clone, push, ref advertisement (sum cache hit & cache miss)
-#  7-11: cache hits
-#  12-16: cache miss'
-plot    "plot-git-ops" using 1:6 with lines title "ref advertisement", \
-        "plot-git-ops" using 1:11 with lines title "ref advertisement (hit)", \
-        "plot-git-ops" using 1:16 with lines title "ref advertisement (miss)"

regenerate-graphs.sh

 
 time logparser gitOperations ${LOG_FILE} +RTS -sstderr > plot-git-ops
 gnuplot < gnuplot/generate-git-ops-plot.plot
-gnuplot < gnuplot/generate-git-ref-advertisement-plot.plot
 
 time logparser maxConn ${LOG_FILE} +RTS -sstderr  > plot-all
 gnuplot < gnuplot/generate-max-conn-plot.plot
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.