(task, ms)
| 3207 | return buffer; |
| 3208 | } |
| 3209 | function markTaskStart(task, ms) { |
| 3210 | { |
| 3211 | profilingState[QUEUE_SIZE]++; |
| 3212 | |
| 3213 | if (eventLog !== null) { |
| 3214 | // performance.now returns a float, representing milliseconds. When the |
| 3215 | // event is logged, it's coerced to an int. Convert to microseconds to |
| 3216 | // maintain extra degrees of precision. |
| 3217 | logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]); |
| 3218 | } |
| 3219 | } |
| 3220 | } |
| 3221 | function markTaskCompleted(task, ms) { |
| 3222 | { |
| 3223 | profilingState[PRIORITY] = NoPriority; |
no test coverage detected