Closed
Bug 625846
(heap)
Opened 15 years ago
Closed 7 years ago
Add Heap Snapshot and Analysis tools
Categories
(DevTools :: Memory, defect)
DevTools
Memory
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jrmuizel, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Whiteboard: [performance] [shumway])
User Story
As a developer, I would like to be able to analyze a full heap snapshot so that I can get a better understanding of the memory behavior of my application. This is a broad user story, will do specifics in individual user stories.
Attachments
(1 file)
179.64 KB,
image/png
|
Details |
Chrome has a heap snapshot tool that tells you where memory is being spent on a particular page. We should get this.
Reporter | ||
Updated•15 years ago
|
Summary: Add Heap Snapshot → Add Heap Snapshot tool
There are probably half a dozen bugs on this, but the one that looks most promising at the moment is Bug 625305.
Reporter | ||
Comment 2•15 years ago
|
||
(In reply to comment #1)
> There are probably half a dozen bugs on this, but the one that looks most
> promising at the moment is Bug 625305.
Nope, that one is different. Chrome's tool is a snapshot for a particular page and breaks down the memory usage per object. Bug 625305 will only tell which page is using memory and not really give you any help in fixing it.
![]() |
||
Updated•14 years ago
|
Blocks: MemShrinkTools
Updated•14 years ago
|
Whiteboard: [console-1]
Updated•14 years ago
|
Whiteboard: [console-1]
![]() |
||
Updated•14 years ago
|
Whiteboard: [MemShrink:P2]
Updated•14 years ago
|
Hardware: x86 → All
Version: unspecified → Trunk
![]() |
||
Updated•14 years ago
|
Hardware: All → x86
Whiteboard: [MemShrink:P2]
Version: Trunk → unspecified
![]() |
||
Comment 3•14 years ago
|
||
I removed the MemShrink annotation because this more a user-facing dev tool than a "the browser needs to be slimmer" tool.
Updated•14 years ago
|
Hardware: x86 → All
Version: unspecified → Trunk
Reporter | ||
Comment 4•14 years ago
|
||
The blog post has a good summary of using Chrome's tool:
http://gent.ilcore.com/2011/08/finding-memory-leaks.html
Comment 6•14 years ago
|
||
One possibly fun twist here would be to allow user-defined predicates, written in JS, to distinguish JS Objects, which are otherwise just going to be a giant blob.
![]() |
||
Comment 7•14 years ago
|
||
Type inference has boat-loads of information about objects; I bet that could be utilized somehow.
Comment 8•13 years ago
|
||
Found during bug triage (nearly a year later).
This is definitely something I would love to have. CC'ing Shu for his Type Inference interests.
Updated•13 years ago
|
Whiteboard: [performance]
Updated•13 years ago
|
Alias: heap
Summary: Add Heap Snapshot tool → Add Heap Snapshot and Analysis tools
Comment 10•12 years ago
|
||
Is this still on the devtools team's radar? Debugging the memory allocation patterns in Shumway would be greatly helped by having such a tool.
Updated•12 years ago
|
Blocks: perf-kanban
Comment 11•12 years ago
|
||
Adding this to the performance Kanban. Need to log user stories associated with a heap tool. The main user story is to find memory leaks without having to record.
As a app/web developer I would like to find memory leaks without having to run a recording so that I don't have to fill up my hard drive with useless data and so that I can find long term memory leaks.
Acceptance criteria:
- Be able to take heap snapshots
- be able to do diffs on the snapshots
Updated•12 years ago
|
Flags: pm-scrub?
Updated•12 years ago
|
Blocks: long-term-leaks
Comment 13•12 years ago
|
||
I'm working on memory tracking and it would be extremely useful for me.
I'm attaching a screenshot of how this looks in Chrome DevTools.
Here's the description:
What I see on top is that there's an object (@50971) which uses 153kb of memory. Objects in total use 507kb, but that's the single biggest one.
When I unfold it I see that it has tons of strings - it's our localization entries object.
Now I see how it's structured.
At the bottom I see that it's retained because of a reference from a variable "entries" which is referenced from a variable context which is referenced by an Array and Window object itself.
That's super helpful.
I can also wait a few seconds and do another snapshot and compare which objects were removed, added or modified and how it affected memory consumption. That's also useful.
One thing that I miss heavily is ability to filter objects by file they were defined in.
Updated•12 years ago
|
Component: Developer Tools → Developer Tools: Memory
Flags: pm-scrub?
Comment 14•11 years ago
|
||
Converting this to a user story to capture all the dependent user stories for heap snapshot analysis.
Updated•11 years ago
|
Component: Developer Tools: Memory → Developer Tools: User Stories
Updated•11 years ago
|
User Story: (updated)
Updated•10 years ago
|
Depends on: memory-platform
Updated•10 years ago
|
Blocks: shumway-later
Component: Developer Tools: User Stories → Developer Tools: Memory
Comment 15•7 years ago
|
||
We've had a memory panel in the devtools for a while now. Anything more specific should be filed as new bugs. Thanks!
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•