An open API service indexing awesome lists of open source software.

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).

Awesome Lists containing this project

README

        

[![main](https://github.com/flowerinthenight/memx/actions/workflows/main.yml/badge.svg)](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]`.