Memory Inspector Theoretical 1

Inspect ArrayBuffers in JS

Use the Memory Inspector tool to inspect the ArrayBuffers in JS

In this example, we will create a loop that creates a new ArrayBuffer and fills it with random data. We will then inspect the memory used by the ArrayBuffer in the Memory Inspector.

Steps

  1. Open DevTools, and open Sources Panel
  2. Open index.js
  3. Set a breakpoint in line 18 in the loop body
  4. Reload the page
  5. Inspect the Scope View and open the Module Scope
  6. Open up the memory inspector for the
  7. Step and see updates to buffers in the memory inspector