docs(bench press): add clarifying comment

This commit is contained in:
Tobias Bosch 2015-01-06 15:56:54 -08:00
parent 1320175646
commit 458b2d7215
1 changed files with 4 additions and 0 deletions

View File

@ -190,6 +190,10 @@ function sumTimelineRecords(records, startTimeStampId, endTimeStampId) {
// we need to substract the time of child records
// that have been added to the stats from this record.
// E.g. for a script record that triggered a gc or reflow while executing.
// Attention: If a gc happens during a script execution, the
// execution time of the script is usually slower than normal,
// even when we substract the gc time!!
recordDuration = (record.endTime ? record.endTime - record.startTime : 0)
- summedChildrenDuration;