Hi everyone,
I don't know how to calculate cpu and memory usage information of a process.I know this information is located in /proc/pid/... but where............because i want to display this information in C++ without using "gliptop" library........... Please help me ........even if possible i need "top" command source code in Linux...

Any help is greatly appreciated.......

Recommended Answers

All 2 Replies

this is not correct solution................i want in C/C++ code without using gliptop

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.