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

Method attach_allocators

crates/memtrack/src/ebpf/tracker.rs:38–45  ·  view source on GitHub ↗
(&mut self, libs: &[AllocatorLib])

Source from the content-addressed store, hash-verified

36 }
37
38 pub fn attach_allocators(&mut self, libs: &[AllocatorLib]) -> Result<()> {
39 for allocator in libs {
40 self.bpf
41 .attach_allocator_probes(allocator.kind, &allocator.path)?;
42 }
43
44 Ok(())
45 }
46
47 pub fn attach_allocator(&mut self, lib: &AllocatorLib) -> Result<()> {
48 self.bpf.attach_allocator_probes(lib.kind, &lib.path)

Callers 2

newMethod · 0.80
track_commandFunction · 0.80

Calls 1

Tested by 1

track_commandFunction · 0.64