resource: process-group: Use taskstats instead of reading procfs 56/273456/2
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 31 Mar 2022 04:32:25 +0000 (13:32 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 6 Apr 2022 09:22:19 +0000 (18:22 +0900)
commitad5541e79c0d74a62e09f2ca5335f7b36c7cd25d
tree5820a85c989b7c23d5f37187964f21a8b076f26e
parentfe5e0dd127e30fe312166fa82adfe9111278fb99
resource: process-group: Use taskstats instead of reading procfs

To lower the overhead of getting information about process, use
taskstats instead of reading procfs while building group list.
Moreover, two advantages can be gained as using taskstats directly:
 1. Lower number of copy
 2. Using taskstats accounting information without process driver

Change-Id: I5242d25ab864b05674d9af01838d3401a356a1df
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/resource/resource-process-group.c