Example 9

Example 9: DOM leaks bigger than expected

See Demo webpage: Example 9: DOM leaks bigger than expected in Record heap snapshots using the Memory tool ("Heap snapshot" profiling type).

  1. Start memory profiling. Watch node count.
  2. Create a subtree of dom nodes and save a reference to a leaf and subtree route
  3. Detach tree
  4. Watch the detached node count
  5. Remove tree reference
  6. Watch the detached node count
  7. Remove leaf reference
  8. Watch the detached node count