MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / new_without_allocators

Method new_without_allocators

crates/memtrack/src/ebpf/tracker.rs:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

attach_tracepointsMethod · 0.80

Tested by

no test coverage detected