resource: process: Get initial stats of target process with taskstats 55/273455/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 31 Mar 2022 04:16:49 +0000 (13:16 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 6 Apr 2022 04:51:48 +0000 (13:51 +0900)
commitfe5e0dd127e30fe312166fa82adfe9111278fb99
treef00ce86301fd3254c7b6b8df6bf13f7bbb6b39da
parent6de823871943d0bb8b0d9e7bed3f187ac150fd2e
resource: process: Get initial stats of target process with taskstats

Since open and read procfs task stat often cause performance
degradation in the case that many process drivers are frequentyl
set control. To reduce this overhead, now initial stats are retrieved
by taskstats and 'pgid' which cannot be retrieved by taskstats is
get lazily once at the first reading.

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