()
| 295 | } |
| 296 | |
| 297 | export function resetProfiles(): void { |
| 298 | profileNames.forEach(function (name) { |
| 299 | const info = timers[name]; |
| 300 | if (info) { |
| 301 | if (info.runCount) { |
| 302 | console.log('---- timer with name [' + name + "] is currently running and won't be reset"); |
| 303 | } else { |
| 304 | timers[name] = undefined; |
| 305 | } |
| 306 | } |
| 307 | }); |
| 308 | } |
| 309 | |
| 310 | export function startCPUProfile(name: string) { |
| 311 | if (anyGlobal.android) { |
no test coverage detected