(events: Vec<MemtrackEvent>)
| 858 | } |
| 859 | |
| 860 | fn decode_lifecycle(events: Vec<MemtrackEvent>) -> Vec<ProcessMapping> { |
| 861 | let artifact = MemtrackArtifact { events }; |
| 862 | let mut encoded = Vec::new(); |
| 863 | artifact.encode_to_writer(&mut encoded).unwrap(); |
| 864 | read_mappings_from_artifact(&encoded).unwrap() |
| 865 | } |
| 866 | |
| 867 | fn mapping_summary(mappings: &[ProcessMapping]) -> Vec<(pid_t, &str, u64)> { |
| 868 | mappings |