Difference between revisions of "Profile"

From FirebugWiki
Jump to: navigation, search
(Separate Command Line API page for profile())
 
m (Added categories)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Turns on the JavaScript profiler. The optional argument title contains the text to be printed in the header of the profile report.
+
Turns the [[Profiler#CPU_profiling|JavaScript CPU profiler]] on, which creates detailed statistics about function calls.
 +
 
 +
To stop profiling use <code>[[profileEnd|profileEnd()]]</code>.
 +
 
 +
This command is a shortcut for the [[console.profile]] API.  
 +
 
 +
== Syntax ==
 +
<source lang="javascript">
 +
profile([title])
 +
</source>
 +
 
 +
== See also ==
 +
* [[profileEnd]]
 +
* [[Command Line API]]
 +
 
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 16:06, 21 November 2013

Turns the JavaScript CPU profiler on, which creates detailed statistics about function calls.

To stop profiling use profileEnd().

This command is a shortcut for the console.profile API.

Syntax[edit]

profile([title])

See also[edit]