]> xenbits.xensource.com Git - people/iwj/talks/2014-osstest.git/commitdiff
wip
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 18 Jul 2014 17:00:05 +0000 (18:00 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Jul 2014 17:00:05 +0000 (18:00 +0100)
.gitignore [new file with mode: 0644]
jobs.runes [new file with mode: 0644]
psql2gnuplot [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..00204f0
--- /dev/null
@@ -0,0 +1,2 @@
+*~
+*.data
diff --git a/jobs.runes b/jobs.runes
new file mode 100644 (file)
index 0000000..fb591ea
--- /dev/null
@@ -0,0 +1,8 @@
+# select count(*), flight, branch, started from jobs join flights using (flight) where branch='xen-unstable' and blessing='real' and started >=1374166076  group by flight, branch, started order by flight desc \g jobs.data
+
+set yrange [0:*]
+set xtics 5000000
+set xdata time
+set timefmt "%s"
+set term x11 persist
+plot 'jobs.gnuplot' using 4:1 title 'jobs in xen-unstable'
diff --git a/psql2gnuplot b/psql2gnuplot
new file mode 100755 (executable)
index 0000000..f8e7150
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/perl -wp
+use strict;
+$_="" if $.==1;
+$_="" unless m/[^-+ \t\n]/;
+$_="" if m/^\(\d+ rows\)$/;
+s/\|//g;
+s/\S*[^0-9. \t\n]\S*/"$&"/g;