48 lines
885 B
Plaintext
48 lines
885 B
Plaintext
|
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
|
||
|
|
||
|
hdiff = diffy/4.3
|
||
|
cy = yup - (diffy/8)
|
||
|
cx = (diffx/20) + xleft
|
||
|
|
||
|
lstartx = cx
|
||
|
lendx = cx + diffx/8
|
||
|
tstartx = lendx + diffx/20
|
||
|
|
||
|
.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
|
||
|
"Cached DODB" ljust at tstartx,cy
|
||
|
cy = cy - hdiff
|
||
|
.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
|
||
|
}
|