Bug 1201907 - Enable memory tool for use and add a trait indicating its availability. r=fitzgen

This commit is contained in:
Jordan Santell 2015-10-28 16:21:10 -07:00
parent f8917a2bfb
commit c19543f341
2 changed files with 4 additions and 6 deletions

View File

@ -285,14 +285,9 @@ Tools.memory = {
label: "Memory",
panelLabel: "Memory Panel",
tooltip: "Memory (keyboardshortcut)",
hiddenInOptions: true,
isTargetSupported: function (target) {
// TODO 1201907
// Once Fx44 lands, we should add a root trait `heapSnapshots`
// to indicate that the memory actor can handle this.
// Shouldn't make this change until Fx44, however.
return true; // target.getTrait("heapSnapshots");
return target.getTrait("heapSnapshots");
},
build: function (frame, target) {

View File

@ -173,6 +173,9 @@ RootActor.prototype = {
// Whether or not `getProfile()` supports specifying a `startTime`
// and `endTime` to filter out samples. Fx40+
profilerDataFilterable: true,
// Whether or not the MemoryActor's heap snapshot abilities are
// fully equipped to handle heap snapshots for the memory tool. Fx44+
heapSnapshots: true,
},
/**