MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / line

Function line

src/memoryprofiler.js:578–584  ·  view source on GitHub ↗
(x0, y0, x1, y1)

Source from the content-addressed store, hash-verified

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 }

Callers 1

updateUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected