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

Function bytesToPixelsRoundedUp

src/memoryprofiler.js:328–330  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

326 // block. The different rounding will guarantee that even 'thin' allocations
327 // should get at least one pixel dot in the graph.
328 bytesToPixelsRoundedUp(bytes) {
329 return ((bytes * emscriptenMemoryProfiler.canvas.width * emscriptenMemoryProfiler.canvas.height + HEAP8.length - 1) / HEAP8.length) | 0;
330 },
331
332 // Graphs a range of allocated memory. The memory range will be drawn as a
333 // top-to-bottom, left-to-right stripes or columns of pixels.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected