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

Method slice

packages/compiler-cli/preprocessor/src/perf.ts:183–183  ·  view source on GitHub ↗

* Runs `fn` as a synchronous section on the main thread, ended when `fn` returns or throws. A * `fileId` of 0 means no file.

(kind: SpanKind, fn: () => T, fileId?: number)

Source from the content-addressed store, hash-verified

181 * `fileId` of 0 means no file.
182 */
183 slice<T>(kind: SpanKind, fn: () => T, fileId?: number): T;
184 /**
185 * Like `slice`, for a driver-level await during which nothing else runs on the main thread
186 * (the `AWAITING_KINDS`). The section ends when the promise settles.

Callers 15

manage.jsFile · 0.65
resolveModuleFunction · 0.65
validateMethod · 0.65
validateMethod · 0.65
normalizeEventFunction · 0.65
addServerStylesFunction · 0.65
constructorMethod · 0.65
isNavigationRequestMethod · 0.65
listMethod · 0.65

Implementers 1

RecordingTracerpackages/compiler-cli/preprocessor/src

Calls

no outgoing calls

Tested by 5

matcherFunction · 0.52
matcherFunction · 0.52
parseMethod · 0.52
serializeMethod · 0.52