On Wed, Nov 4, 2015 at 11:07 AM, David Rajchenbach-Teller < [email protected]> wrote:
> That sounds very useful. > > Any chance we can get the same kind of output on the console in case of > mochitest memory leak? > I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=1221704 to track this. You can use `[ThreadSafe]ChromeUtils.saveHeapSnapshot`[0] to programmatically save a heap snapshot file. This tool is using that under the covers right now, but we don't yet expose importing and exporting these files in the UI. It is pretty high priority to add soon. Follow along with import and export at https://bugzilla.mozilla.org/show_bug.cgi?id=1215954 and https://bugzilla.mozilla.org/show_bug.cgi?id=1215953 So yes, we could definitely programmatically save a heap snapshot file at the end of a mochitest if we detect a leak. A tiny bit more work needed on the tool's frontend to import a saved snapshot. [0] h ttps:// dxr.mozilla.org/mozilla-central/rev/f742b9412ed5aace90ad863b276faae0641090a8/dom/webidl/ThreadSafeChromeUtils.webidl#13-25,36-66 _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

