Function
markTaskRun
(
task: {
id: number,
priorityLevel: PriorityLevel,
...
},
ms: number,
)
Source from the content-addressed store, hash-verified
| 136 | } |
| 137 | |
| 138 | export function markTaskRun( |
| 139 | task: { |
| 140 | id: number, |
| 141 | priorityLevel: PriorityLevel, |
| 142 | ... |
| 143 | }, |
| 144 | ms: number, |
| 145 | ) { |
| 146 | if (enableProfiling) { |
| 147 | runIdCounter++; |
| 148 | |
| 149 | if (eventLog !== null) { |
| 150 | logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]); |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | export function markTaskYield(task: {id: number, ...}, ms: number) { |
| 156 | if (enableProfiling) { |
Tested by
no test coverage detected