Skip to content

Commit

Permalink
Added png, ps to the plotted output
Browse files Browse the repository at this point in the history
 make all will generate the plots in those formats

 parse converts from conventional ping data to something gnuplot
 can deal with...

 I will bend gnuplot to my will eventually.
  • Loading branch information
Dave Taht committed Jan 7, 2012
1 parent 28600f7 commit 9798815
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 10 deletions.
28 changes: 20 additions & 8 deletions test/tso/Makefile
Expand Up @@ -6,26 +6,38 @@
# FIXME - output pngs
GNUPLOT = /usr/bin/gnuplot
GNUPLOTI = /usr/bin/gnuplot
# GNUPLOT = /usr/bin/gnuplot -e 'set terminal something other than this'
PAUSE=pause.plt
PNGOUT=png.plt
PSOUT=ps.plt

SRC:=$(wildcard *.ping)
OBJ:=$(SRC:.ping=.data)
PNG:=$(SRC:.data=.png)
PNG:=$(SRC:.ping=.png)
PS:=$(SRC:.ping=.ps)
GRAPHS:=$(wildcard *.ps *.png)

logscale=ericpinglog.plt
normscale=ericping.plt

all: $(OBJ)
all: $(OBJ) ping.png ping.ps ping_log.ps ping_log.png

pingl: $(OBJ)
$(GNUPLOTI) < $(logscale)
cat $(logscale) $(PAUSE) | $(GNUPLOTI)

ping: $(OBJ)
$(GNUPLOTI) < $(normscale)
cat $(normscale) $(PAUSE) | $(GNUPLOTI)

ping_log.png: $(OBJ)
$(GNUPLOT) < $(logscale)
cat $(PNGOUT) $(logscale) | $(GNUPLOT) > ping_log.png

ping.png: $(OBJ)
$(GNUPLOT) < $(normscale)
cat $(PNGOUT) $(normscale) | $(GNUPLOT) > ping.png

ping_log.ps: $(OBJ)
cat $(PSOUT) $(logscale) | $(GNUPLOT) > ping_log.ps

ping.ps: $(OBJ)
cat $(PSOUT) $(normscale) | $(GNUPLOT) > ping.ps

clean: $(OBJ)
rm -f $(OBJ)
rm -f $(OBJ) $(PS) $(PNG) $(GRAPHS)
3 changes: 3 additions & 0 deletions test/tso/README.org
@@ -1,3 +1,6 @@
* Notes
It's not clear to me what the 'loaded' file is actually measuring.

The sample size of 20 is hardcoded into the gnuplot files.

And I'd really prefer mountain plots I think.
1 change: 1 addition & 0 deletions test/tso/eps.plt
@@ -0,0 +1 @@
set terminal eps nocrop enhanced font arial 8 size 1000,1000
1 change: 0 additions & 1 deletion test/tso/ericping.plt
Expand Up @@ -9,4 +9,3 @@ plot 'idle.data' u 2:(1./20.) smooth cumulative title 'IDLE', \
'loaded.data' u 2:(1./20.) smooth cumulative title 'NEWEST SFQ', \
'no_tso.data' u 2:(1./20.) smooth cumulative title 'NEW SFQ NO TSO', \
'tso.data' u 2:(1./20.) smooth cumulative title 'NEW SFQ WITH TSO'
pause 500
1 change: 0 additions & 1 deletion test/tso/ericpinglog.plt
Expand Up @@ -10,4 +10,3 @@ plot 'idle.data' u 2:(1./20.) smooth cumulative title 'IDLE', \
'loaded.data' u 2:(1./20.) smooth cumulative title 'NEWEST SFQ', \
'no_tso.data' u 2:(1./20.) smooth cumulative title 'NEW SFQ NO TSO', \
'tso.data' u 2:(1./20.) smooth cumulative title 'NEW SFQ With TSO'
pause 500
1 change: 1 addition & 0 deletions test/tso/pause.plt
@@ -0,0 +1 @@
pause 50
1 change: 1 addition & 0 deletions test/tso/png.plt
@@ -0,0 +1 @@
set terminal png nocrop enhanced font arial 8 size 1000,1000
1 change: 1 addition & 0 deletions test/tso/ps.plt
@@ -0,0 +1 @@
set terminal postscript enhanced

0 comments on commit 9798815

Please sign in to comment.