Profiler

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Profiling feature)
(Removed the description of the Memory Profiler because it was removed from FB 1.10)
 
(3 intermediate revisions not shown)
Line 1: Line 1:
-
[[Image:Profiler.png|thumb|400px|Profiler]]
+
The Profiler allows users to observe JavaScript activity and get statistics related to it.
-
The Profiler allows users to observe JavaScript activity and get statistics related to it. It's functionality is currently split into two parts - CPU profiling and memory profiling.
+
[[Image:Profiler.png|thumb|400px|CPU Profiler]]
-
 
+
-
== CPU profiling ==
+
CPU profiling allows to get statistics about JavaScript function calls.
CPU profiling allows to get statistics about JavaScript function calls.
This information includes the following data:
This information includes the following data:
Line 13: Line 11:
| Function || Name of the called function ("(?)" or "anonymous" for anonymous functions)
| Function || Name of the called function ("(?)" or "anonymous" for anonymous functions)
|-  
|-  
-
| Calls || Number of calls to that function
+
| Calls || Number of calls to the function
|-  
|-  
| Percent || Percentage in time in comparison to all function calls within the profiling session
| Percent || Percentage in time in comparison to all function calls within the profiling session
Line 30: Line 28:
|}
|}
-
== Memory profiling ==
+
== See also ==
-
While CPU profiling concentrates on giving information about CPU activity, memory profiling returns data about RAM usage.
+
[[Memorybug]] - Firebug extension for memory profiling
-
Memory profiling is currently disabled by default, because it is still in experimental state. It can be activated by setting <code>extensions.firebug.memoryProfilerEnable</code> to <code>true</code>.
+

Latest revision as of 20:59, 22 April 2013

The Profiler allows users to observe JavaScript activity and get statistics related to it.

CPU Profiler

CPU profiling allows to get statistics about JavaScript function calls. This information includes the following data:

Column Description
Function Name of the called function ("(?)" or "anonymous" for anonymous functions)
Calls Number of calls to the function
Percent Percentage in time in comparison to all function calls within the profiling session
Own Time Time spent within the function (time spent within functions called by that function are not taken into account)
Time Summary of time spent within the function of all calls
Avg Average time for one call of the function
Min Minimal time spent within the function
Max Minimal time spent within the function
File Name of the file plus line number, in which the function is located

[edit] See also

Memorybug - Firebug extension for memory profiling

Personal tools