resource: process-group: Add aggregated attributes for accounting stats 57/273457/2 accepted/tizen/unified/20220412.100309 submit/tizen/20220408.030842
authorDongwoo Lee <dwoo08.lee@samsung.com>
Sun, 3 Apr 2022 14:14:22 +0000 (23:14 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 7 Apr 2022 01:40:28 +0000 (10:40 +0900)
commite5b2952d3db58e339221f0e3161a2c1c34e45167
tree685c68d5433911c4a6af67a38ad071a438304990
parentad5541e79c0d74a62e09f2ca5335f7b36c7cd25d
resource: process-group: Add aggregated attributes for accounting stats

To provide aggregated accounting information about the process group
which includes target process and its child at a driver level, the
structure managing the current process group is changed from list to
hash, and it is preserved until root target is changed or a prcess in
a group is terminated to maintain previous stats. Thus, the clients can
retrieved aggregated accounting stats without create the individual
process driver. Newly added attributes are as follows:
 - PROCESS_GROUP_ATTR_CPU_UTIL
 - PROCESS_GROUP_ATTR_DISK_READ_BPS
 - PROCESS_GROUP_ATTR_DISK_WRITE_BPS
 - PROCESS_GROUP_ATTR_MEM_VIRT
 - PROCESS_GROUP_ATTR_MEM_RSS

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