Bug 1024774 - Implement heap snapshots. r=jimb