Example 8

Example 8: Recording heap allocations

Analyze the impact of closures on memory. See Demo webpage: Example 8: Recording heap allocations in Record heap snapshots using the Memory tool ("Heap snapshot" profiling type).

See that eval retains a reference on all the variables of the closure.

  1. Start to record heap allocations
  2. Start the creation of new closures
  3. Analyze what happens