forked from Chia-Network/chiapos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisk.gnuplot
More file actions
executable file
·22 lines (18 loc) · 879 Bytes
/
Copy pathdisk.gnuplot
File metadata and controls
executable file
·22 lines (18 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! gnuplot
set output "disk.png"
set term png size 14000,900 small
set termoption enhanced
set xrange [0:*]
set xlabel "timestamp"
set ylabel "offset"
set format y "%6.0fMB"
set format x "%6.1fmin"
set key off
plot "disk.log" using ($1/1000/60):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable
set output "disk-reads.png"
plot "disk.log" using ($4 == 0 ? ($1/1000/60) : 1/0):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable
set output "disk-writes.png"
plot "disk.log" using ($4 == 1 ? ($1/1000/60) : 1/0):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable
set output "disk-overview.png"
set term png size 1400,700 small
plot "disk.log" using ($1/1000/60):($2/1024/1024):($2/1024/1024):($3/1024/1024):($2/1024/1024):5 with candlesticks lc variable