blob: c71d42bfcb20be3be783d5175ec1c54982acc2d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
if [ -f "performance.out" ]; then
echo "x=load('performance.out');
x=(x > 1);
y=length(x);
p=zeros(y-100,1);
for i=1:(y-100)
p(i)=mean(x(i:(i+100),1));
end
p" \
| octave -q \
| tr -dc "0123456789.\n" \
|grep -v "^$" \
> performance.out.sliding-avg
PWD=`pwd`
echo "set title 'performance (sliding avg, window size 100) $PWD'
set terminal postscript
set output 'performance.out.ps'
plot 'performance.out.sliding-avg' using 1 with lines, 0.5" \
| gnuplot
fi
|