-
Notifications
You must be signed in to change notification settings - Fork 343
Supports collection of process shared memory #719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
SilenceAdele
commented
Apr 23, 2025
- Parse process memory usage from /proc/[pid]/statm into ProcStatm struct.
- Add unit tests for proc_statm.
- Add /proc/26231/statm test data to fixtures.
cf3dae0
to
b1487ea
Compare
/cc @SuperQ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
proc_statm.go
Outdated
|
||
// - https://man7.org/linux/man-pages/man5/proc_pid_statm.5.html | ||
|
||
// ProcStatm provides memory usage information for a process, measured in memory pages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// ProcStatm provides memory usage information for a process, measured in memory pages. | |
// ProcStatm Provides memory usage information for a process, measured in memory pages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/SilenceAdele/procfs/compare/b1487ea..72849ee
@SuperQ ok, I have been modified it. Thanks for your review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @SuperQ
* Parse process memory usage from /proc/[pid]/statm into ProcStatm struct. * Add unit tests for proc_statm. * Add /proc/26231/statm test data to fixtures. Signed-off-by: zhiyuan.zhou <zhiyuan.zhou@easystack.cn>