зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1130278 - The 'show-platform-data' pref is irrelevant for memory call trees, r=jsantell
This commit is contained in:
Родитель
760c3412d4
Коммит
32eac95fb7
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
let MemoryCallTreeView = Heritage.extend(DetailsSubview, {
|
||||
|
||||
rerenderPrefs: ["invert-call-tree", "show-platform-data"],
|
||||
rerenderPrefs: ["invert-call-tree"],
|
||||
|
||||
rangeChangeDebounceTime: 100, // ms
|
||||
|
||||
|
@ -60,11 +60,10 @@ let MemoryCallTreeView = Heritage.extend(DetailsSubview, {
|
|||
*/
|
||||
_prepareCallTree: function (allocations, { startTime, endTime }, options) {
|
||||
let samples = RecordingUtils.getSamplesFromAllocations(allocations);
|
||||
let contentOnly = !PerformanceController.getPref("show-platform-data");
|
||||
let invertTree = PerformanceController.getPref("invert-call-tree");
|
||||
|
||||
let threadNode = new ThreadNode(samples,
|
||||
{ startTime, endTime, contentOnly, invertTree });
|
||||
{ startTime, endTime, invertTree });
|
||||
|
||||
// If we have an empty profile (no samples), then don't invert the tree, as
|
||||
// it would hide the root node and a completely blank call tree space can be
|
||||
|
|
Загрузка…
Ссылка в новой задаче