Add documentation of the JS hooks

git-svn-id: svn://10.0.0.236/trunk@240576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2007-12-06 17:04:56 +00:00
parent 14e7f87234
commit 892a6a023b

View File

@ -87,6 +87,14 @@ which have the following meanings:
accomplish that.
</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>
<ul>