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

Class NoopPerfRecorder

packages/compiler-cli/src/ngtsc/perf/src/noop.ts:10–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import {PerfPhase, PerfRecorder} from './api';
9
10class NoopPerfRecorder implements PerfRecorder {
11 eventCount(): void {}
12
13 memory(): void {}
14
15 phase(): PerfPhase {
16 return PerfPhase.Unaccounted;
17 }
18
19 inPhase<T>(phase: PerfPhase, fn: () => T): T {
20 return fn();
21 }
22
23 reset(): void {}
24}
25
26export const NOOP_PERF_RECORDER: PerfRecorder = new NoopPerfRecorder();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…