MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / resetProfiles

Function resetProfiles

packages/core/profiling/index.ts:297–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295}
296
297export 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
310export function startCPUProfile(name: string) {
311 if (anyGlobal.android) {

Callers 10

test_isRunningFunction · 0.90
test_reset_profilesFunction · 0.90
test_start_stopFunction · 0.90
test_start_stop_countFunction · 0.90
test_reentrancyFunction · 0.90

Calls 2

forEachMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected