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

Function stop

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

Source from the content-addressed store, hash-verified

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