https://github.com/flowerinthenight/memx
Get in-process memory usage (Linux).
https://github.com/flowerinthenight/memx
golang linux memory proc pss
Last synced: 3 months ago
JSON representation
Get in-process memory usage (Linux).
- Host: GitHub
- URL: https://github.com/flowerinthenight/memx
- Owner: flowerinthenight
- License: mit
- Created: 2024-05-28T06:11:06.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-05-30T12:40:11.000Z (12 months ago)
- Last Synced: 2024-12-30T13:38:00.309Z (5 months ago)
- Topics: golang, linux, memory, proc, pss
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/flowerinthenight/memx/actions/workflows/main.yml)
`memx` returns the calling process' memory usage (private + shared) in kB. Linux-specific only.
It does this by reading [`PSS`](https://en.wikipedia.org/wiki/Proportional_set_size) from `/proc/{pid}/smaps[_rollup]`.