From Fedora Project Wiki
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= Description = | = Description = | ||
Firefox comes with DTrace probe points that can be used to profile Javascript processes. Want to profile memory, time, etc. on your Javascript, using Fedora 12? This page will show you how. | Firefox comes with DTrace probe points that can be used to profile Javascript processes. Want to profile memory, time, etc. on your Javascript, using Fedora 12? This page will show you how. | ||
= Requirements = | = Requirements = | ||
*[[https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial|Firefox source]] | *[[https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial|Firefox source]] | ||
Line 9: | Line 9: | ||
= Setup = | = Setup = | ||
## Download Firefox source from the above link. | |||
## Create a mozconfig file as follows (Gently adapted from [[http://blog.uxebu.com/2009/02/20/firefox-on-osx-with-dtrace | Uxebu]]) | |||
. $topsrcdir/browser/config/mozconfig | . $topsrcdir/browser/config/mozconfig | ||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff | ||
Line 18: | Line 18: | ||
ac_add_options --enable-shared --disable-static --enable-dtrace | ac_add_options --enable-shared --disable-static --enable-dtrace | ||
mk_add_options MOZ_MAKE_FLAGS="-s -j4" | mk_add_options MOZ_MAKE_FLAGS="-s -j4" | ||
mk_add_options AUTOCONF= | mk_add_options AUTOCONF="autoconf-2.13" | ||
## Install autoconf 2.13 (<code>yum install autoconf213</code>) | |||
## Enter the mozilla directory and run <code>make -f client.mk build</code> | |||
= Playing = | = Playing = | ||
The libmozjs can be found in (source directory)firefox/obj-ff/dist/lib/libmozjs.so, and the binary is located at (source directory)firefox/obj-ff/dist/bin/firefox. | The libmozjs can be found in (source directory)firefox/obj-ff/dist/lib/libmozjs.so, and the binary is located at (source directory)firefox/obj-ff/dist/bin/firefox. |
Revision as of 19:27, 14 December 2009
Description
Firefox comes with DTrace probe points that can be used to profile Javascript processes. Want to profile memory, time, etc. on your Javascript, using Fedora 12? This page will show you how.
Requirements
Setup
- Download Firefox source from the above link.
- Create a mozconfig file as follows (Gently adapted from [| Uxebu])
. $topsrcdir/browser/config/mozconfig mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff ac_add_options --enable-debug --disable-optimize ac_add_options --enable-shared --disable-static --enable-dtrace mk_add_options MOZ_MAKE_FLAGS="-s -j4" mk_add_options AUTOCONF="autoconf-2.13"
- Install autoconf 2.13 (
yum install autoconf213
) - Enter the mozilla directory and run
make -f client.mk build
- Install autoconf 2.13 (
Playing
The libmozjs can be found in (source directory)firefox/obj-ff/dist/lib/libmozjs.so, and the binary is located at (source directory)firefox/obj-ff/dist/bin/firefox.