MCPcopy Create free account
hub / github.com/angular/angular / stop

Function stop

devtools/projects/ng-devtools-backend/src/lib/profiling/capture.ts:54–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52};
53
54export const stop = (): ProfilerFrame => {
55 const directiveForestManager = getDirectiveForestManager();
56 const result = flushBuffer(directiveForestManager);
57 getProfiler().unsubscribe(hooks);
58 inProgress = false;
59 hooks = {};
60 IdentityTracker.getInstance().selectMode('normal');
61
62 return result;
63};
64
65const startEvent = (map: Record<string, number>, directive: DirectiveInstance, label: string) => {
66 const name = getDirectiveName(directive);

Calls 6

getProfilerFunction · 0.90
flushBufferFunction · 0.85
selectModeMethod · 0.80
getInstanceMethod · 0.80
unsubscribeMethod · 0.65

Tested by

no test coverage detected