(task, ms)
| 2409 | return buffer; |
| 2410 | } |
| 2411 | function markTaskStart(task, ms) { |
| 2412 | { |
| 2413 | profilingState[QUEUE_SIZE]++; |
| 2414 | |
| 2415 | if (eventLog !== null) { |
| 2416 | // performance.now returns a float, representing milliseconds. When the |
| 2417 | // event is logged, it's coerced to an int. Convert to microseconds to |
| 2418 | // maintain extra degrees of precision. |
| 2419 | logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]); |
| 2420 | } |
| 2421 | } |
| 2422 | } |
| 2423 | function markTaskCompleted(task, ms) { |
| 2424 | { |
| 2425 | profilingState[PRIORITY] = NoPriority; |
no test coverage detected
searching dependent graphs…