Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443712 - >=www-client/firefox-16: add USE flag for enabling the built-in profiler
Summary: >=www-client/firefox-16: add USE flag for enabling the built-in profiler
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-18 02:14 UTC by Keshav Kini
Modified: 2017-08-26 17:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keshav Kini 2012-11-18 02:14:07 UTC
As of Firefox 16, there's a built in profiler framework in Firefox, but it
needs to be enabled at compile time. See
https://developer.mozilla.org/en-US/docs/Performance/Profiling_with_the_Built-in_Profiler .

It would be nice if we could have a USE flag to enable this.
Comment 1 Keshav Kini 2012-11-26 19:47:03 UTC
I don't have any familiarity with how Firefox is packaged for Gentoo, but I did try to make the following changes to the ebuild:

diff --git a/www-client/firefox/firefox-17.0-r1.ebuild b/www-client/firefox/firefox-17.0-r1.ebuild
index 8f1fd52..c6fa119 100644
--- a/www-client/firefox/firefox-17.0-r1.ebuild
+++ b/www-client/firefox/firefox-17.0-r1.ebuild
@@ -38,7 +38,7 @@ HOMEPAGE="http://www.mozilla.com/firefox"
 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist gstreamer +ipc +jit +minimal pgo selinux system-sqlite +webm"
+IUSE="bindist gstreamer +ipc +jit +minimal pgo profiling selinux system-sqlite +webm"
 
 # More URIs appended below...
 SRC_URI="${SRC_URI}
@@ -223,6 +223,7 @@ src_configure() {
 	mozconfig_annotate '' --build="${CTARGET:-${CHOST}}"
 
 	mozconfig_use_enable gstreamer
+	mozconfig_use_enable profiling
 	mozconfig_use_enable system-sqlite
 	# Both methodjit and tracejit conflict with PaX
 	mozconfig_use_enable jit methodjit

After this change, Firefox seemed to build without errors, at least. The extension at https://addons.mozilla.org/en-us/firefox/addon/gecko-profiler/ still shows as "Not available for your platform", though.
Comment 2 Jory A. Pratt gentoo-dev 2017-08-26 17:57:41 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team