Bug 633986 Mobile preferences for nice process r=mbrubeck
authorBenjamin Stover <bstover@mozilla.com>
Mon, 14 Feb 2011 14:33:46 -0800
changeset 67388 9b48025a1ac5362c20057df586e20613e620d86b
parent 67387 1d27b49d4e13f9b1abf49a72d98a325b80755a46
child 67389 0318fed779caeeed52598dad4a76d393ccf352a0
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs633986
Bug 633986 Mobile preferences for nice process r=mbrubeck
mobile/app/mobile.js
--- a/mobile/app/mobile.js
+++ b/mobile/app/mobile.js
@@ -417,16 +417,24 @@ pref("browser.ui.touch.weight.visited", 
 // plugins
 #if MOZ_PLATFORM_MAEMO == 6
 pref("plugin.disable", false);
 #else
 pref("plugin.disable", true);
 #endif
 pref("dom.ipc.plugins.enabled", true);
 
+// process priority
+// higher values give content process less CPU time
+#if MOZ_PLATFORM_MAEMO
+pref("dom.ipc.content.nice", 10);
+#else
+pref("dom.ipc.content.nice", 1);
+#endif
+
 // product URLs
 // The breakpad report server to link to in about:crashes
 pref("breakpad.reportURL", "http://crash-stats.mozilla.com/report/index/");
 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/releasenotes/");
 pref("app.sync.tutorialURL", "https://www.mozilla.com/%LOCALE%/mobile/sync/");
 pref("app.support.baseURL", "http://mobile.support.mozilla.com/");
 pref("app.feedbackURL", "http://input.mozilla.com/feedback/");
 pref("app.privacyURL", "https://www.mozilla.com/%LOCALE%/legal/privacy/firefox/mobile/");