Looper Demo

This page has an example of leaky code. 'Show' and 'Hide' buttons toggle the visibility of a modal. The show handler makes a new element, but the hide method never removes it. Looper can help identify leaks by exercising actions that should be clean.

  1. Open the "Profile" panel of the Webkit Developer Tools.
  2. Select "Take Heap Snapshot" and click "Take Snapshot" to record a fresh snapshot.
  3. Click the "Loop" button on the page and let it finish.
  4. Select "Take Heap Snapshot" and click "Take Snapshot" to record a snapshot after the leak has been introduced.