Bug 1130278 - The 'show-platform-data' pref is irrelevant for memory call trees, r=jsantell

This commit is contained in:
Victor Porof 2015-02-06 13:23:18 -05:00
Родитель 760c3412d4
Коммит 32eac95fb7
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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