Wrap the benchmark leaf so it runs pinned according to this mode. The profiler wraps its recorder around the result, so this must only touch the leaf and never move the profiler onto the bench cores.
(&self, bench_cmd: CommandBuilder)
| 90 | /// profiler wraps its recorder around the result, so this must only touch the |
| 91 | /// leaf and never move the profiler onto the bench cores. |
| 92 | pub fn wrap_bench(&self, bench_cmd: CommandBuilder) -> Result<CommandBuilder> { |
| 93 | match self { |
| 94 | Isolation::None => Ok(bench_cmd), |
| 95 | Isolation::Hooks => wrap_with_hook(bench_cmd), |
| 96 | Isolation::Systemd => wrap_isolation_scope(bench_cmd), |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | impl Drop for Isolation { |