(task, ms)
| 3262 | } |
| 3263 | } |
| 3264 | function markTaskYield(task, ms) { |
| 3265 | { |
| 3266 | profilingState[PRIORITY] = NoPriority; |
| 3267 | profilingState[CURRENT_TASK_ID] = 0; |
| 3268 | profilingState[CURRENT_RUN_ID] = 0; |
| 3269 | |
| 3270 | if (eventLog !== null) { |
| 3271 | logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]); |
| 3272 | } |
| 3273 | } |
| 3274 | } |
| 3275 | function markSchedulerSuspended(ms) { |
| 3276 | { |
| 3277 | mainThreadIdCounter++; |