2024-05-12 20:47:09 +02:00
|
|
|
define boite {
|
|
|
|
xleft = $1
|
|
|
|
xright = $2
|
|
|
|
yup = $3
|
|
|
|
ydown = $4
|
|
|
|
|
|
|
|
line from xleft,ydown to xright,ydown
|
|
|
|
line from xleft,yup to xright,yup
|
|
|
|
line from xleft,yup to xleft,ydown
|
|
|
|
line from xright,yup to xright,ydown
|
|
|
|
}
|
|
|
|
|
|
|
|
define legend {
|
|
|
|
xleft = $1
|
|
|
|
xright = $2
|
|
|
|
yup = $3
|
|
|
|
ydown = $4
|
|
|
|
|
|
|
|
diffx = xright - xleft
|
|
|
|
diffy = yup - ydown
|
|
|
|
|
2024-05-24 00:25:28 +02:00
|
|
|
hdiff = diffy/5.7
|
2024-05-13 21:46:02 +02:00
|
|
|
cy = yup - (diffy/6)
|
2024-05-12 20:47:09 +02:00
|
|
|
cx = (diffx/20) + xleft
|
|
|
|
|
|
|
|
lstartx = cx
|
|
|
|
lendx = cx + diffx/8
|
|
|
|
tstartx = lendx + diffx/20
|
|
|
|
|
2024-05-24 00:25:28 +02:00
|
|
|
.ps -2
|
2024-05-12 20:47:09 +02:00
|
|
|
.gcolor red
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"RAM only" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
line from lstartx,cy to lendx,cy
|
2024-05-13 21:46:02 +02:00
|
|
|
"Cached db and index" ljust at tstartx,cy
|
2024-05-12 20:47:09 +02:00
|
|
|
cy = cy - hdiff
|
2024-05-24 00:25:28 +02:00
|
|
|
.gcolor pink
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"FIFO db and cached index" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
2024-05-12 20:47:09 +02:00
|
|
|
.gcolor blue
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"Uncached db, cached index" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
.gcolor green
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"Uncached db and index" ljust at tstartx,cy
|
2024-05-24 00:25:28 +02:00
|
|
|
.ps +2
|
2024-05-12 20:47:09 +02:00
|
|
|
}
|