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

Function mapping_event

src/executor/memory/module_artifacts.rs:824–838  ·  view source on GitHub ↗
(pid: pid_t, timestamp: u64, addr: u64, path: &str)

Source from the content-addressed store, hash-verified

822 }
823
824 fn mapping_event(pid: pid_t, timestamp: u64, addr: u64, path: &str) -> MemtrackEvent {
825 MemtrackEvent {
826 pid,
827 tid: pid,
828 timestamp,
829 addr,
830 kind: MemtrackEventKind::Mapping {
831 path: path.to_string(),
832 dev: 1,
833 ino: 1,
834 file_offset: 0,
835 len: 0x1000,
836 },
837 }
838 }
839
840 fn fork_event(child_pid: pid_t, parent_pid: pid_t, timestamp: u64) -> MemtrackEvent {
841 MemtrackEvent {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected