summaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorConnor O'Brien <connoro@google.com>2019-02-20 12:17:48 -0800
committerMichael Bestas <mkbestas@lineageos.org>2021-08-19 08:35:04 +0300
commitcf9acebb178f5fe66275e445708717c9c0559b93 (patch)
tree257c7b393f51407ac4f92d07af7ca72fb1aa0778 /lib/test-string_helpers.c
parente9e9735b9d1790be22b33ce5640e2768d3b7651e (diff)
ANDROID: cpufreq: times: optimize proc files
The majority of the time spent reading /proc/uid_time_in_state is due to seq_printf calls. Use the faster seq_put_* variations instead. Also skip empty hash buckets in uid_seq_next for a further performance improvement. Bug: 111216804 Test: Read /proc/uid_time_in_state and confirm output is sane Test: Compare read times to confirm performance improvement Change-Id: If8783b498ed73d2ddb186a49438af41ac5ab9957 Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions