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

Function mapping_for

src/executor/memory/module_artifacts.rs:339–349  ·  view source on GitHub ↗
(path: &str, dev: u64, ino: u64)

Source from the content-addressed store, hash-verified

337 use runner_shared::artifacts::MemtrackEvent;
338
339 fn mapping_for(path: &str, dev: u64, ino: u64) -> ProcessMapping {
340 ProcessMapping {
341 pid: 42,
342 path: path.to_string(),
343 dev,
344 ino,
345 file_offset: 0,
346 avma_range: 0x1000..0x2000,
347 timestamp: 7,
348 }
349 }
350
351 /// Identity of the test binary as the kernel reports it for the mapping
352 /// that loaded it, which is what `PERF_RECORD_MMAP2` records.

Calls

no outgoing calls