зеркало из https://github.com/mozilla/pjs.git
Add documentation of the JS hooks
This commit is contained in:
Родитель
76a47e94a2
Коммит
0059b9a330
|
@ -87,6 +87,14 @@ which have the following meanings:
|
||||||
accomplish that.
|
accomplish that.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h4>Starting and stopping jprof from JavaScript</h4>
|
||||||
|
<p>
|
||||||
|
A build with jprof enabled adds two functions to the Window object:
|
||||||
|
<code>JProfStartProfiling()</code> and <code>JProfStopProfiling()</code>. When used with JP_DEFER, these
|
||||||
|
allow one to start and stop the timer just around whatever critical section is
|
||||||
|
being profiled
|
||||||
|
</p>
|
||||||
|
|
||||||
<h4>Examples of JPROF_FLAGS usage</h4>
|
<h4>Examples of JPROF_FLAGS usage</h4>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче