- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.gpi
More file actions
Latest commit
72 lines (59 loc) · 2.78 KB
/
Copy pathplot.gpi
File metadata and controls
72 lines (59 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env gnuplot
atop_file = TITLE . '.atop'
phases_file = TITLE . '.phases'
setmacros
#set term svg size 800, 300
setterm pngcairo size800, 400 font 'Arial,10'
setoutput TITLE . '.png'
setstyle data lines
N = `echo @TITLE | sed 's/@.*//' | sed 's/.*-//'`
#DIRNAME = "`dirname $TITLE`"
#DIRNAME = "`basename $DIRNAME`"
DIRNAME = system("basename " . system("dirname " . TITLE))
settitleDIRNAME . ' N=' . N
settitlesystem("basename " . TITLE)
setxlabel'time (s)'
setylabel''
setyrange [0:1]
LAST = `tail -n1 @TITLE.phases | awk '{print $1}'`
setxrange [0:LAST]
setxtics
setkeyoutside
setrmargin20
start_time = `atop -r @atop_file -PCPU | grep CPU | head -n 1 | awk '{print $3}'`
utilization(total, idle) = (total - idle) / total
cpu_cmd = '< atop -r ' . TITLE . '.atop -PCPU | sed -n "0,/^SEP$/d;p" | grep -v SEP'
dsk_cmd = '< atop -r ' . TITLE . '.atop -PDSK | sed -n "0,/^SEP$/d;p" | grep -v SEP | grep sda'
setstyle line 100lt1lw2 pt 0 linecolor rgb "#4CEAFC"
setstyle line 101lt1lw2 pt 0 linecolor rgb "#7C40D6"
# From http://download.oracle.com/tech/blaf/specs/colorpalette.html.
setstyle line 1lt1lw1 pt 0 linecolor rgb "#336699"
setstyle line 2lt1lw1 pt 0 linecolor rgb "#99CCFF"
setstyle line 3lt1lw1 pt 0 linecolor rgb "#999933"
setstyle line 4lt1lw1 pt 0 linecolor rgb "#666699"
setstyle line 5lt1lw1 pt 0 linecolor rgb "#CC9933"
setstyle line 6lt1lw1 pt 0 linecolor rgb "#006666"
setstyle line 7lt1lw1 pt 0 linecolor rgb "#3399FF"
setstyle line 8lt1lw1 pt 0 linecolor rgb "#993300"
setstyle line 9lt1lw1 pt 0 linecolor rgb "#CCCC99"
setstyle line 10lt1lw1 pt 0 linecolor rgb "#666666"
setstyle line 11lt1lw1 pt 0 linecolor rgb "#FFCC66"
setstyle line 12lt1lw1 pt 0 linecolor rgb "#6699CC"
setstyle line 13lt1lw1 pt 0 linecolor rgb "#663366"
setstyle line 14lt1lw1 pt 0 linecolor rgb "#9999CC"
setstyle line 15lt1lw1 pt 0 linecolor rgb "#CCCCCC"
setstyle line 16lt1lw1 pt 0 linecolor rgb "#669999"
setstyle line 17lt1lw1 pt 0 linecolor rgb "#CCCC66"
setstyle line 18lt1lw1 pt 0 linecolor rgb "#CC6600"
setstyle line 19lt1lw1 pt 0 linecolor rgb "#9999FF"
setstyle line 20lt1lw1 pt 0 linecolor rgb "#0066CC"
setstyle line 21lt1lw1 pt 0 linecolor rgb "#99CCCC"
setstyle line 22lt1lw1 pt 0 linecolor rgb "#999999"
setstyle line 23lt1lw1 pt 0 linecolor rgb "#FFCC00"
setstyle line 24lt1lw1 pt 0 linecolor rgb "#009999"
setstyle line 25lt1lw1 pt 0 linecolor rgb "#99CC33"
setstyle line 26lt1lw1 pt 0 linecolor rgb "#FF9900"
setstyle line 27lt1lw1 pt 0 linecolor rgb "#999966"
setstyle line 28lt1lw1 pt 0 linecolor rgb "#66CCCC"
setstyle line 29lt1lw1 pt 0 linecolor rgb "#339966"
setstyle line 30lt1lw1 pt 0 linecolor rgb "#CCCC33"