зеркало из https://github.com/mozilla/pjs.git
Updating docs a bit.
This commit is contained in:
Родитель
3531f26609
Коммит
61e4c3b2bd
|
@ -36,17 +36,19 @@ its time.
|
|||
<h3><a name="setup">Setup</a></h3>
|
||||
|
||||
First, check out the jprof source code since it is not a part of the
|
||||
default SeaMonkeyAll CVS tag. To do this do:
|
||||
default pull. To do this do:
|
||||
<pre>
|
||||
cvs co mozilla/tools/jprof
|
||||
</pre>
|
||||
Next, enable jprof and rebuild mozilla:
|
||||
<pre>
|
||||
# jprof needs symbols, do not use --enable-strip-libs
|
||||
./configure --enable-jprof
|
||||
make
|
||||
</pre>
|
||||
Now you can run jprof.
|
||||
|
||||
<p>Next, configure your mozilla with jprof support by adding
|
||||
<code>--enable-jprof</code> to your configure options (eg adding
|
||||
<code>ac_add_options --enable-jprof</code> to your <code>.mozconfig</code>) and
|
||||
making sure that you do <strong>not</strong> have the
|
||||
<code>--enable-strip</code> configure option set -- jprof needs symbols to
|
||||
operate.</p>
|
||||
|
||||
<p>Finally, build mozilla with your new configuration. Now you can run jprof.</p>
|
||||
|
||||
<h3><a name="usage">Usage</a></h3>
|
||||
|
||||
|
@ -76,11 +78,13 @@ which have the following meanings:
|
|||
<li> <b>JP_RTC_HZ=freq</b> : This option, only available on Linux if the
|
||||
kernel is built with RTC support, makes jprof use the RTC timer instead of
|
||||
using its own timer. This option, like JP_REALTIME, uses intervals of real
|
||||
time. This option overrides JP_PERIOD. freq is the frequency at which the
|
||||
timer should fire, measured in Hz. It must be a power of 2. The maximal
|
||||
frequency allowed by the kernel can be changed by writing to
|
||||
time. This option overrides JP_PERIOD. <code>freq</code> is the frequency
|
||||
at which the timer should fire, measured in Hz. It must be a power of 2.
|
||||
The maximal frequency allowed by the kernel can be changed by writing to
|
||||
<code>/proc/sys/dev/rtc/max-user-freq</code>; the maximum value it can be
|
||||
set to is 8192.
|
||||
set to is 8192. Note that <code>/dev/rtc</code> will need to be readable
|
||||
by the Firefox process; making that file world-readable is a simple way to
|
||||
accomplish that.
|
||||
</ul>
|
||||
|
||||
<h4>Examples of JPROF_FLAGS usage</h4>
|
||||
|
|
Загрузка…
Ссылка в новой задаче