From 2ad4bcd235a947d3ebf27ad2c6603da4417b6f5c Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Fri, 6 Feb 2015 13:26:08 -0500 Subject: [PATCH] Bug 1130276 - Add an 'invert flame graph' option to go along with 'invert call tree', r=jsantell --- browser/app/profile/firefox.js | 1 + browser/devtools/performance/performance.xul | 5 +++ browser/devtools/performance/test/browser.ini | 2 + ...wser_perf-options-invert-flame-graph-01.js | 38 +++++++++++++++++++ ...wser_perf-options-invert-flame-graph-02.js | 38 +++++++++++++++++++ .../performance/views/details-js-call-tree.js | 5 ++- .../views/details-js-flamegraph.js | 8 +++- .../views/details-memory-call-tree.js | 4 +- .../views/details-memory-flamegraph.js | 7 +++- .../devtools/shared/widgets/FlameGraph.jsm | 7 ++++ .../chrome/browser/devtools/profiler.dtd | 5 +++ 11 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 browser/devtools/performance/test/browser_perf-options-invert-flame-graph-01.js create mode 100644 browser/devtools/performance/test/browser_perf-options-invert-flame-graph-02.js diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index 9778aaeedc93..d8019c1f0729 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1438,6 +1438,7 @@ pref("devtools.profiler.ui.show-idle-blocks", true); // The default Performance UI settings pref("devtools.performance.ui.invert-call-tree", true); +pref("devtools.performance.ui.invert-flame-graph", false); pref("devtools.performance.ui.flatten-tree-recursion", true); pref("devtools.performance.ui.show-platform-data", false); pref("devtools.performance.ui.show-idle-blocks", true); diff --git a/browser/devtools/performance/performance.xul b/browser/devtools/performance/performance.xul index 0dd4d8849cb5..6b391447c315 100644 --- a/browser/devtools/performance/performance.xul +++ b/browser/devtools/performance/performance.xul @@ -50,6 +50,11 @@ data-pref="invert-call-tree" label="&profilerUI.invertTree;" tooltiptext="&profilerUI.invertTree.tooltiptext;"/> + + + + +