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