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

Function spans

packages/compiler-cli/preprocessor/test/perf_spec.ts:43–45  ·  view source on GitHub ↗
(events: TraceEvent[], ph: TraceEvent['ph'])

Source from the content-addressed store, hash-verified

41}
42
43function spans(events: TraceEvent[], ph: TraceEvent['ph']): TraceEvent[] {
44 return events.filter((e) => e.ph === ph);
45}
46
47describe('Tracer', () => {
48 it('records nothing when disabled', async () => {

Callers 1

perf_spec.tsFile · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected