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

Method inPhase

packages/compiler-cli/src/ngtsc/perf/src/api.ts:405–405  ·  view source on GitHub ↗

* Run `fn` in the given `PerfPhase` and return the result. * * Enters `phase` before executing the given `fn`, then exits the phase and returns the result. * Prefer this API to `phase()` where possible.

(phase: PerfPhase, fn: () => T)

Source from the content-addressed store, hash-verified

403 * Prefer this API to `phase()` where possible.
404 */
405 inPhase<T>(phase: PerfPhase, fn: () => T): T;
406
407 /**
408 * Record the memory usage of the compiler at the given checkpoint.

Callers 15

getRenameInfoMethod · 0.65
findRenameLocationsMethod · 0.65
constructorMethod · 0.65
emitMethod · 0.65
scanImportsMethod · 0.65
incrementalMethod · 0.65

Implementers 3

NoopPerfRecorderpackages/compiler-cli/src/ngtsc/perf/s
ActivePerfRecorderpackages/compiler-cli/src/ngtsc/perf/s
DelegatingPerfRecorderpackages/compiler-cli/src/ngtsc/perf/s

Calls

no outgoing calls

Tested by

no test coverage detected