Display memory mapped files for processes#7
Conversation
propertone
left a comment
There was a problem hiding this comment.
If you compare the output of procfd and lsof for memory maps, procfd includes an extra entry for the executable. Is there a way to make them match? Also, I don't think it's correct to include mmaps for --type=path, it should be a separate filter.
|
Example of inspecting a bash process with Inspecting the same process with Filtering with Grepping for |
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for displaying memory-mapped files for processes by implementing a new "mmap" file descriptor type. This enhancement allows users to view which files are memory-mapped by each process, providing additional insight into process resource usage.
- Adds MMap variant to FDType and FDTarget enums
- Implements memory map querying and filtering functionality
- Excludes process executables from memory map results to avoid duplication
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Resolves #4.