MCPcopy
hub / github.com/angular/angular / startMeasuring

Function startMeasuring

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

Source from the content-addressed store, hash-verified

15 * Should be used in pair with stopMeasuring
16 */
17export function startMeasuring(label: string): void {
18 if (!enablePerfLogging) {
19 return;
20 }
21
22 const {startLabel} = labels(label);
23 /* tslint:disable:ban */
24 performance.mark(startLabel);
25 /* tslint:enable:ban */
26}
27
28/**
29 * Function that will stop measuring against the performance API

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…