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

Method count

packages/compiler-cli/preprocessor/ng-analyze/src/perf/layer.rs:370–374  ·  view source on GitHub ↗
(&self, counter: Counter, n: u64)

Source from the content-addressed store, hash-verified

368
369 #[inline]
370 pub(super) fn count(&self, counter: Counter, n: u64) {
371 if self.recording() {
372 self.with_buf(|buf| buf.counters[counter as usize] += n);
373 }
374 }
375
376 #[inline]
377 pub(super) fn count_cache_hit(&self, name: &'static str) {

Callers

nothing calls this directly

Calls 2

recordingMethod · 0.80
with_bufMethod · 0.80

Tested by

no test coverage detected