| 576 | |
| 577 | // Print a divider line to make the sbrk()/heap resize block more prominently visible compared to the rest of the allocations. |
| 578 | function line(x0, y0, x1, y1) { |
| 579 | self.drawContext.beginPath(); |
| 580 | self.drawContext.moveTo(x0, y0); |
| 581 | self.drawContext.lineTo(x1, y1); |
| 582 | self.drawContext.lineWidth = 2; |
| 583 | self.drawContext.stroke(); |
| 584 | } |
| 585 | if (self.sbrkSources.length > 0) line(0, 0.75*self.canvas.height, self.canvas.width, 0.75*self.canvas.height); |
| 586 | if (self.resizeMemorySources.length > 0) line(0, 0.5*self.canvas.height, self.canvas.width, 0.5*self.canvas.height); |
| 587 | } |