`ps aux`查看所有process(试试?
by qinyihao @ 2021-04-07 21:35:00
`#include <sys/resource.h>`
`struct rusage usage;`
[`getrusage`](https://man7.org/linux/man-pages/man2/getrusage.2.html)`(RUSAGE_SELF, &usage);`
`printf("Memory: %ld KB\n", usage.ru_maxrss);`
by ud2_ @ 2021-04-07 21:54:51
@[sjx233_](/user/206953) 谢谢!
by 7KByte @ 2021-04-07 22:07:40
`ps`
by _鱼非仙_ @ 2021-04-13 12:38:30