22
edits
No edit summary |
No edit summary |
||
| Line 68: | Line 68: | ||
{ | { | ||
samples: 624, | samples: 624, | ||
gcSamples: 1, | |||
micros: 12421, | |||
children: [ | children: [ | ||
{ | { | ||
| Line 108: | Line 110: | ||
=== Profiled Statistics === | === Profiled Statistics === | ||
At the root level of the results is the following information: | |||
<dl> | <dl> | ||
<dt>samples | |||
<dd>The total number of samples that were taken while the profiler was running. | |||
<dt>gcSamples | |||
<dd>This is the total number of samples which were taken where GC activity was happening, but no other JS code was running. | |||
<dt>micros | |||
<dd>This is the number of microseconds for which the profiler was running. If the results were generated when the profiler was stopped, then this is the amount of time between the start/stop. If the profiler is still running, then this is the amount of time from the start of the profiler to when the results() method was called. | |||
</dl> | |||
Each child then has the following profile statistics: | |||
<dl> | |||
<dt>function | |||
<dd>This is the function in which the sample was taken. It contains information about the function's name/file/line definition | |||
<dt>site | |||
<dd>This is the actual site of execution at which the sample was taken. For example if function a calls function b and a sample were then taken, the site of b would be the line at which the sample was taken inside b, and the site of a would be the line of the function call to b. | |||
<dt>data | |||
<dd>If the frame() method was invoked, then this represents the corresponding data which was attached to the frame information. | |||
<dt>samples | <dt>samples | ||
<dd>This is an integer value of the number of ticks while this function's frame was on the stack. This is useful when counting total time spent in a function. It should be true that: <tt>samples = selfCount + children.sum('samples')</tt> | <dd>This is an integer value of the number of ticks while this function's frame was on the stack. This is useful when counting total time spent in a function. It should be true that: <tt>samples = selfCount + children.sum('samples')</tt> | ||
edits