commit | 566903ab47c684c0b955fe446ab4dbf5dfaf1a79 | [log] [tgz] |
---|---|---|
author | Misha Wagner <mishaw@google.com> | Tue Oct 02 10:50:12 2018 +0100 |
committer | Misha Wagner <mishaw@google.com> | Tue Oct 30 10:48:27 2018 +0000 |
tree | 955a66b6c9a84e0186d8858aa7b325aec5a0be49 | |
parent | 78ecd34d29d7bb9e7e07be1fbbcfda3ff06ff896 [diff] |
Add class to read per-thread CPU usage from proc filesystem Reads all thread CPU usage for the current process. This traverses "/proc/self/task/*/time_in_state" to gather the thread ID and CPU usage of each child thread. Process name, thread name, and UID are also read from "/proc" for interpretable data. Bug: 111534779 Test: Unit test in CpuThreadProcReaderTest Change-Id: I6c71dde1dfcc9bbb87d95baf0886f9da7a782299