(task, ms)
| 2464 | } |
| 2465 | } |
| 2466 | function markTaskYield(task, ms) { |
| 2467 | { |
| 2468 | profilingState[PRIORITY] = NoPriority; |
| 2469 | profilingState[CURRENT_TASK_ID] = 0; |
| 2470 | profilingState[CURRENT_RUN_ID] = 0; |
| 2471 | |
| 2472 | if (eventLog !== null) { |
| 2473 | logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]); |
| 2474 | } |
| 2475 | } |
| 2476 | } |
| 2477 | function markSchedulerSuspended(ms) { |
| 2478 | { |
| 2479 | mainThreadIdCounter++; |