related:
How do I get the total CPU usage of an application from /proc/pid/stat?
The calculation is too intrusive/complex. So top own process hit %1-3 ish load:)
I wish kernel to provide this stuff more straitforward and programmaticaly, easy to machine parse.Maybe already exists i dont know.
I am not sure cgroups subsystem exposed something related.