From fe14a5b775a889cb98a11aed8722fbcc86b7c24f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 15 Nov 2004 21:10:43 +0000 Subject: Add latency --- web/Makefile.am | 2 + web/latency/Makefile.am | 33 ++++++++++++++ web/latency/ploticus/plot-autorange.pls | 46 ++++++++++++++++++++ web/latency/ploticus/plot-dots-autorange.pls | 35 +++++++++++++++ web/latency/ploticus/plot-dots-samerange-small.pls | 36 ++++++++++++++++ web/latency/ploticus/plot-dots-samerange.pls | 40 +++++++++++++++++ web/latency/ploticus/plot-samerange-small.pls | 50 ++++++++++++++++++++++ web/latency/ploticus/plot-samerange.pls | 49 +++++++++++++++++++++ 8 files changed, 291 insertions(+) create mode 100644 web/latency/Makefile.am create mode 100644 web/latency/ploticus/plot-autorange.pls create mode 100644 web/latency/ploticus/plot-dots-autorange.pls create mode 100644 web/latency/ploticus/plot-dots-samerange-small.pls create mode 100644 web/latency/ploticus/plot-dots-samerange.pls create mode 100644 web/latency/ploticus/plot-samerange-small.pls create mode 100644 web/latency/ploticus/plot-samerange.pls (limited to 'web') diff --git a/web/Makefile.am b/web/Makefile.am index a40c4c0..8c77e3c 100644 --- a/web/Makefile.am +++ b/web/Makefile.am @@ -2,6 +2,8 @@ SUBDIRS = \ allpingers \ images \ include \ + latency \ + meta \ rot26 \ template \ tls diff --git a/web/latency/Makefile.am b/web/latency/Makefile.am new file mode 100644 index 0000000..e85adf5 --- /dev/null +++ b/web/latency/Makefile.am @@ -0,0 +1,33 @@ +SUBDIRS = + +based_in = htdocs +include $(top_srcdir)/Makefile.common + +doc_DATA = result/stats.txt + +result/stats.txt: $(ECHOLOT_BASE)/results/thesaurus/index.txt $(ECHOLOT_BASE)/data $(ECHOLOT_BASE)/data/* + [ -d result ] || mkdir result + [ -d tmp ] || mkdir tmp + if [ -e $@ ] ; then \ + mod=`stat -c '%Y' $@`; \ + else \ + mod=0; \ + fi; \ + now=`date +'%s'`; \ + if [ $$(( $$now - $$mod )) -gt $(LATENCY_AGE) ]; then \ + $(top_srcdir)/bin/latency-graphs $(ECHOLOT_BASE); \ + else \ + echo "** Skipping Latency build"; \ + fi + +clean: + rm -rf result tmp + +install-data-local: result/stats.txt + [ -d $(docdir) ] || mkdir $(docdir) + cp result/*.png $(docdir) + cp result/*.html $(docdir) + +uninstall-local: + rm -f $(docdir)/*.png + rm -f $(docdir)/*.html diff --git a/web/latency/ploticus/plot-autorange.pls b/web/latency/ploticus/plot-autorange.pls new file mode 100644 index 0000000..c2a6bd5 --- /dev/null +++ b/web/latency/ploticus/plot-autorange.pls @@ -0,0 +1,46 @@ +# + +#set X1 = 1 +#set Y1 = 1 +#set X2 = 5 +#set Y2 = 2 + +#proc getdata + file: tmp/values +#endproc + +#set SAMPLES = @NRECORDS + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 1 + xautorange: datafields=1 lowfix=0 +#proc yaxis + label: received pings + stubs: incremental 0.5 + tics: none +#proc yaxis + stubs: none + ticincrement: 0.25 + grid: color=green +#proc xaxis + tics: yes + stubs: incremental + label: latency [m] +#proc xaxis + tics: none + selflocatingstubs: file tmp/stubs + grid: color=blue width=1 + stubdetails: adjust=0,+1.3 + +///////////////////////////////////// + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 @SAMPLES + xautorange: datafields=1 +#proc lineplot + xfield: 1 + // sort: yes + accum: yes + instancemode: yes diff --git a/web/latency/ploticus/plot-dots-autorange.pls b/web/latency/ploticus/plot-dots-autorange.pls new file mode 100644 index 0000000..65803f9 --- /dev/null +++ b/web/latency/ploticus/plot-dots-autorange.pls @@ -0,0 +1,35 @@ +# + +#set X1 = 1 +#set Y1 = 1 +#set X2 = 5 +#set Y2 = 2 + +#proc getdata + file: tmp/points +#endproc + +#set YMAX = 180 + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + //yrange: 0 @YMAX + yautorange: datafields=2 lowfix=0 + xrange: -12 0 +#proc scatterplot + xfield: 1 + yfield: 2 + symbol: shape=triangle style=filled fillcolor=red +#proc yaxis + label: latency [m] + stubs: incremental + grid: color=green +#proc yaxis + tics: none + selflocatingstubs: file tmp/stubs + grid: color=blue width=1 + stubdetails: adjust=4.3,0 align=L +#proc xaxis + tics: yes + stubs: incremental + label: sent [d] diff --git a/web/latency/ploticus/plot-dots-samerange-small.pls b/web/latency/ploticus/plot-dots-samerange-small.pls new file mode 100644 index 0000000..7375f38 --- /dev/null +++ b/web/latency/ploticus/plot-dots-samerange-small.pls @@ -0,0 +1,36 @@ +# + +#set X1 = 1 +#set Y1 = 1 +#set X2 = 2.5 +#set Y2 = 1.5 + +#proc getdata + file: tmp/points +#endproc + +#set YMAX = 180 + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 @YMAX + xrange: -12 0 +#proc scatterplot + xfield: 1 + yfield: 2 + symbol: shape=triangle style=filled fillcolor=red radius=0.02 + +#proc yaxis + // label: latency [m] + stubs: incremental 60 + grid: color=green +#proc yaxis + tics: none + selflocatingstubs: file tmp/stubs + grid: color=blue width=1 + stubdetails: adjust=1.7,0 align=L size=6 +#proc xaxis + tics: yes + stubs: incremental + // label: sent [d] + stubdetails: size=6 diff --git a/web/latency/ploticus/plot-dots-samerange.pls b/web/latency/ploticus/plot-dots-samerange.pls new file mode 100644 index 0000000..0a51ded --- /dev/null +++ b/web/latency/ploticus/plot-dots-samerange.pls @@ -0,0 +1,40 @@ +# + +#set X1 = 1 +#set Y1 = 1 +#set X2 = 5 +#set Y2 = 2 + +#proc getdata + file: tmp/points +#endproc + +#set YMAX = 180 + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 @YMAX + // yautorange: datafields=2 + xrange: -12 0 +#proc scatterplot + xfield: 1 + yfield: 2 + symbol: shape=triangle style=filled fillcolor=red + +#proc yaxis + label: latency [m] + stubs: incremental 60 + tics: none +#proc yaxis + stubs: none + ticincrement: 30 + grid: color=green +#proc yaxis + tics: none + selflocatingstubs: file tmp/stubs + grid: color=blue width=1 + stubdetails: adjust=4.3,0 align=L +#proc xaxis + tics: yes + stubs: incremental + label: sent [d] diff --git a/web/latency/ploticus/plot-samerange-small.pls b/web/latency/ploticus/plot-samerange-small.pls new file mode 100644 index 0000000..1fec93a --- /dev/null +++ b/web/latency/ploticus/plot-samerange-small.pls @@ -0,0 +1,50 @@ +# + +#set X1 = 1 +#set Y1 = 1 +#set X2 = 2.5 +#set Y2 = 1.5 + +#proc getdata + file: tmp/values +#endproc + +#set SAMPLES = @NRECORDS +#set XMAX = 180 + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 1 + #xautorange: datafields=1 + xrange: 0 @XMAX +#proc yaxis + // label: received pings + stubs: incremental 0.5 + tics: none +#proc yaxis + stubs: none + ticincrement: 0.25 + grid: color=green +#proc xaxis + tics: yes + stubs: incremental 30 + // label: latency [m] + stubdetails: size=6 +#proc xaxis + tics: none + selflocatingstubs: file tmp/stubs + grid: color=blue width=1 + stubdetails: adjust=0,+0.8 size=6 + +///////////////////////////////////// + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 @SAMPLES + #xautorange: datafields=1 + xrange: 0 @XMAX +#proc lineplot + xfield: 1 + // sort: yes + accum: yes + instancemode: yes diff --git a/web/latency/ploticus/plot-samerange.pls b/web/latency/ploticus/plot-samerange.pls new file mode 100644 index 0000000..f6af53c --- /dev/null +++ b/web/latency/ploticus/plot-samerange.pls @@ -0,0 +1,49 @@ +# + +#set X1 = 1 +#set Y1 = 1 +#set X2 = 5 +#set Y2 = 2 + +#proc getdata + file: tmp/values +#endproc + +#set SAMPLES = @NRECORDS +#set XMAX = 180 + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 1 + #xautorange: datafields=1 + xrange: 0 @XMAX +#proc yaxis + label: received pings + stubs: incremental 0.5 + tics: none +#proc yaxis + stubs: none + ticincrement: 0.25 + grid: color=green +#proc xaxis + tics: yes + stubs: incremental + label: latency [m] +#proc xaxis + tics: none + selflocatingstubs: file tmp/stubs + grid: color=blue width=1 + stubdetails: adjust=0,+1.3 + +///////////////////////////////////// + +#proc areadef + rectangle: @X1 @Y1 @X2 @Y2 + yrange: 0 @SAMPLES + #xautorange: datafields=1 + xrange: 0 @XMAX +#proc lineplot + xfield: 1 + // sort: yes + accum: yes + instancemode: yes -- cgit v1.2.3