Open Bug 722750 Opened 13 years ago Updated 2 years ago

Expose JS heap dump to JavaScript

Categories

(Core :: JavaScript Engine, defect)

x86
Windows Vista
defect

Tracking

()

People

(Reporter: Honza, Unassigned)

References

(Blocks 1 open bug)

Details

This report is based on following thread: https://groups.google.com/d/topic/mozilla.dev.platform/IT4SUHyiYeE/discussion The process of getting the CC heap log and doing analysis is painful - you need to generate a text file, open in an editor, search in it, use further scripts for analysis, etc. (it's simple to kill several hours even with a simple scenario/STR how to repro the actual problem) There is no way how to iterate entire CC heap graph from JS. Such APIs, would allow dynamic creation and analysis of the heap and safe a lot of time. Ideally, this could be also used to create an automated test for memory-regression leak bugs in extensions. Honza
Doing this for the JS heap will be more difficult, unfortunately. The CC is already set up with a way to easily plug in other dumping tools. It would be fairly easy except that it isn't safe to call into JS during a CC, so we'll have to write something in C++, then copy it over. They should probably be separate bugs eventually.
Whiteboard: [MemShrink]
Whiteboard: [MemShrink]
Blocks: 723783
No longer depends on: 726346
bug 726346 is going to expose CC graph dumping to JS, so let's just make this bug about JS heap dumping.
Summary: Exposed CC/JS heap dump to extensions (JavaScript) → Expose JS heap dump to extensions (JavaScript)
OS: Windows Vista → All
Hardware: x86 → All
Summary: Expose JS heap dump to extensions (JavaScript) → Expose JS heap dump to JavaScript
OS: All → Windows Vista
Hardware: All → x86
Assignee: general → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.