MCPcopy
hub / github.com/angular/angular / stopMeasuring

Function stopMeasuring

packages/core/src/profiler.ts:32–44  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

30 * Should be used in pair with startMeasuring
31 */
32export function stopMeasuring(label: string): void {
33 if (!enablePerfLogging) {
34 return;
35 }
36
37 const {startLabel, labelName, endLabel} = labels(label);
38 /* tslint:disable:ban */
39 performance.mark(endLabel);
40 performance.measure(labelName, startLabel, endLabel);
41 performance.clearMarks(startLabel);
42 performance.clearMarks(endLabel);
43 /* tslint:enable:ban */
44}
45
46export function labels(label: string) {
47 const labelName = `${PERFORMANCE_MARK_PREFIX}:${label}`;

Callers 7

renderToStringMethod · 0.85
createServerPlatformFunction · 0.85
prepareForHydrationFunction · 0.85
insertEventRecordScriptFunction · 0.85
renderModuleFunction · 0.85
renderApplicationFunction · 0.85

Calls 1

labelsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…