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

Method begin

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

Opens a section and returns a token for `end()`.

(kind: SpanKind, fileId: number | undefined)

Source from the content-addressed store, hash-verified

308
309 /** Opens a section and returns a token for `end()`. */
310 private begin(kind: SpanKind, fileId: number | undefined): number {
311 this.openKind.push(kind);
312 this.openStart.push(nowMicros());
313 this.openFile.push(fileId);
314 this.openChildUs.push(0);
315 if (!AWAITING_KINDS[kind]) {
316 this.openNonAwaiting++;
317 }
318 return this.openKind.length;
319 }
320
321 /** Ends the section of `token`, and any section left open inside it. */
322 private end(token: number): void {

Callers 2

sliceMethod · 0.95
sliceAsyncMethod · 0.95

Calls 2

nowMicrosFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected