MCPcopy Index your code
hub / github.com/angular/angular / inPhase

Method inPhase

packages/compiler-cli/src/ngtsc/perf/src/api.ts:400–400  ·  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

398 * Prefer this API to `phase()` where possible.
399 */
400 inPhase<T>(phase: PerfPhase, fn: () => T): T;
401
402 /**
403 * 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