Port bug 1599745 - Register all performance panel recording preferences and move their default values there. rs=bustage-fix DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 29 Nov 2019 19:32:52 +1300
changeset 36752 2328b40f1537207039d6f81c1847c40b653253d4
parent 36751 a5a20755812560254bda1c712ef36d27c491d529
child 36753 c006cb1d5b5bdc9c88c05a3dfa9c22a059608c47
push id2534
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:52:51 +0000
treeherdercomm-beta@055c50840778 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1599745
Port bug 1599745 - Register all performance panel recording preferences and move their default values there. rs=bustage-fix DONTBUILD
mail/app/profile/all-thunderbird.js
--- a/mail/app/profile/all-thunderbird.js
+++ b/mail/app/profile/all-thunderbird.js
@@ -966,22 +966,36 @@ pref("devtools.performance.ui.enable-mem
 
 // Enable experimental options in the UI only in Nightly
 #if defined(NIGHTLY_BUILD)
   pref("devtools.performance.ui.experimental", true);
 #else
   pref("devtools.performance.ui.experimental", false);
 #endif
 
-// Preferences for the new performance panel. This pref configures the base URL
-// for the profiler.firefox.com instance to use. This is useful so that a
-// developer can change it while working on profiler.firefox.com, or in tests.
-// This isn't exposed directly to the user.
+// Preferences for the new performance panel.
+// This pref configures the base URL for the profiler.firefox.com instance to
+// use. This is useful so that a developer can change it while working on
+// profiler.firefox.com, or in tests. This isn't exposed directly to the user.
 pref("devtools.performance.recording.ui-base-url", "https://profiler.firefox.com");
 
+// Profiler buffer size. It is the maximum number of 8-bytes entries in the
+// profiler's buffer. 10000000 is ~80mb.
+pref("devtools.performance.recording.entries", 10000000);
+// Profiler interval in microseconds. 1000┬Ás is 1ms
+pref("devtools.performance.recording.interval", 1000);
+// Profiler duration of entries in the profiler's buffer in seconds.
+// `0` means no time limit for the markers, they roll off naturally from the
+// circular buffer.
+pref("devtools.performance.recording.duration", 0);
+// Profiler feature set. See tools/profiler/core/platform.cpp for features and
+// explanations.
+// Please update the if branch as well if you upadate this.
+pref("devtools.performance.recording.features", "[\"js\",\"leaf\",\"responsiveness\",\"stackwalk\"]");
+pref("devtools.performance.recording.threads", "[\"GeckoMain\",\"Compositor\"]");
 // A JSON array of strings, where each string is a file path to an objdir on
 // the host machine. This is used in order to look up symbol information from
 // build artifacts of local builds.
 pref("devtools.performance.recording.objdirs", "[]");
 
 // The default cache UI setting
 pref("devtools.cache.disabled", false);