summaryrefslogtreecommitdiff
path: root/code_coverage/empty_policy/code_coverage.x86.policy
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-04-05 23:20:49 -0700
committerJulian Veit <claymore1298@gmail.com>2023-01-09 19:55:19 +0100
commitc1af80d99e81c32d7e203c3a82577d04554e3fd7 (patch)
treed8d24fbdef2d4c5948e4b7eeaec0d3409dd238e5 /code_coverage/empty_policy/code_coverage.x86.policy
parentbf8eb4ac11a0be1c6dbbef58128483d0aea41875 (diff)
init.rc: Disable native stats collection service
When opening and closing activities in Settings, a measurably significant amount of CPU time is spent processing and logging stats events in statsd: 0.02% /apex/com.android.os.statsd/lib64/libstatspull.so @plt 0.01% /apex/com.android.os.statsd/bin/statsd @plt 0.01% /apex/com.android.os.statsd/bin/statsd SocketListener::runListener() 0.01% /apex/com.android.os.statsd/bin/statsd android::os::statsd::LogEvent::parseBuffer(unsigned char*, unsigned long) 0.01% /apex/com.android.os.statsd/bin/statsd android::os::statsd::LogEvent::parseAnnotations(unsigned char, int) Over longer device uptimes with real-world usage, statsd uses a substantial amount of total CPU time. We have no use for the stats recorded by statsd, so disable the service entirely to save CPU in potential hotpaths. This is the system/core part of the change; changes to frameworks/base are also required. Test: simpleperf record -a; verify that statsd no longer appears in sample hits Change-Id: Idf6fdb0eff987169bd5f370dd72315e831a669e6 (cherry picked from commit b2b3b6a142c0ca0ae5b2335aa2b0353661aa80da)
Diffstat (limited to 'code_coverage/empty_policy/code_coverage.x86.policy')
0 files changed, 0 insertions, 0 deletions