Example 6

Example 6: Leaking DOM nodes

If the compiler uses hidden classes, your code runs MUCH faster and uses MUCH LESS memory. See Demo webpage: Example 6: Leaking DOM nodes in Record heap snapshots using the Memory tool ("Heap snapshot" profiling type).

  1. Open Timeline tab.
  2. Start recording activity.
  3. Repeat the next steps and watch the Timeline
    1. Create some nodes
    2. GC