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>)
| 38 | /// Drains timeline events, totals and counters. `None` unless recording. `file_path` names the |
| 39 | /// files of the slowest queries. |
| 40 | pub 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. |