pixelstats: MM Metrics: test support base #2
* Refactor to support testing the process stime (/proc/<pid>/stat>,
15th field) for kswapd and kcompactd
- <pid> = pid of kswapd or kcompactd
- i.e. major work: wrap the sysfs node read path with function
getSysfsPath()
- some refactor needed in order to separate generate atom fields for
pure code test with GTest.
* Test support coverage:
- MmMetricsPerDay::kswapd running time
- MmMetricsPerDay::kcompactd running time
Bug: 244671514
Test: Will test it with combined commits later.
Change-Id: I7736beb1b4b02a8e47d03f26000a5df4312115cc
Signed-off-by: Robin Hsu <robinhsu@google.com>
2 files changed