GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Firefox Source Docs
  • A Glossary of Common Terms
  • A Quick Guide to Mozilla Applications
  • Getting Set Up To Work On The Firefox Codebase
  • Working on Firefox
  • Bug Handling
  • Firefox Crash Reporting
  • 3D view
  • about:debugging
  • Accessibility Inspector
  • Application
  • Browser Console
  • Browser Toolbox
  • Custom Formatters

This view

  • Original page
  • New address

GeezerVison is showing firefox-source-docs.mozilla.org — Memory — Firefox Source Docs documentation

Memory

The Memory tool lets you take a snapshot of the current tab’s memory heap. It then provides a number of views of the heap that can show you which objects account for memory usage and exactly where in your code you are allocating memory.



The basics

  • Taking a heap snapshot

  • Comparing two snapshots

  • Deleting snapshots

  • Saving and loading snapshots

  • Recording call stacks

Analyzing snapshots

Once you’ve taken a snapshot, there are three main views the Memory tool provides:

  • the Tree map view shows memory usage as a treemap.

  • the Aggregate view shows memory usage as a table of allocated types.

  • the Dominators view shows the “retained size” of objects: that is, the size of objects plus the size of other objects that they keep alive through references.

If you’ve opted to record allocation stacks for the snapshot, the Aggregate and Dominators views can show you exactly where in your code allocations are happening.

Concepts

  • Dominators

Example pages

Examples used in the Memory tool documentation.

  • Monster example

  • DOM allocation example

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.