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

Function take

packages/compiler-cli/preprocessor/ng-analyze/src/perf/layer.rs:40–45  ·  view source on GitHub ↗

Drains timeline events, totals and counters. `None` unless recording. `file_path` names the files of the slowest queries.

(file_path: &dyn Fn(u32) -> Option<String>)

Source from the content-addressed store, hash-verified

38/// Drains timeline events, totals and counters. `None` unless recording. `file_path` names the
39/// files of the slowest queries.
40pub fn take(file_path: &dyn Fn(u32) -> Option<String>) -> Option<PerfTake> {
41 LAYER
42 .get()
43 .filter(|l| l.recording())
44 .map(|l| l.take(file_path))
45}
46
47/// Now in µs on the clock of the events, or `None` until [`install`]. The `now` RPC returns it,
48/// so Node can align the clocks with a round trip that carries no payload.

Callers 15

whenStableFunction · 0.85
obsToSinglePromiseFunction · 0.85
postMessageMethod · 0.85
nextEventOfTypeMethod · 0.85
requestSubscriptionMethod · 0.85
unsubscribeMethod · 0.85
callFetchAndFlushFunction · 0.85
fetch_spec.tsFile · 0.85

Calls 5

mapMethod · 0.80
recordingMethod · 0.80
getMethod · 0.65
takeMethod · 0.65
filterMethod · 0.45

Tested by 2

nextScrollEventFunction · 0.68
preloadMethod · 0.68