()
| 26 | } |
| 27 | |
| 28 | pub fn new_without_allocators() -> Result<Self> { |
| 29 | // Bump memlock limits |
| 30 | Self::bump_memlock_rlimit()?; |
| 31 | |
| 32 | let mut bpf = MemtrackBpf::new()?; |
| 33 | bpf.attach_tracepoints()?; |
| 34 | |
| 35 | Ok(Self { bpf }) |
| 36 | } |
| 37 | |
| 38 | pub fn attach_allocators(&mut self, libs: &[AllocatorLib]) -> Result<()> { |
| 39 | for allocator in libs { |
nothing calls this directly
no test coverage detected