Profiler
From FirebugWiki
Revision as of 13:57, 17 October 2011 by Sebastianz (Talk | contribs)
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.
CPU profiling
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 that 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 |
Memory profiling
While CPU profiling concentrates on giving information about CPU activity, memory profiling returns data about RAM usage.
Memory profiling is currently disabled by default, because it is still in experimental state. It can be activated by setting extensions.firebug.memoryProfilerEnable to true.