summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Main.java
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-03-21 19:13:39 -0700
committeralk3pInjection <webmaster@raspii.tech>2021-09-27 21:17:05 +0800
commit64ba326f80f600b9d710f264a44d4fc15c0a2bc5 (patch)
treed3eba3ff7c8572ed5fd9c4a8ef493286d1753a50 /test/ProfileTestMultiDex/Main.java
parent1d5c6211d095433020f9a63d1f21e53a4076c857 (diff)
[ProtonAOSP] art: Disable debug tracing in production builds
When opening and closing activities in Settings, a significant amount of CPU time is spent checking whether ATrace tags are enabled, as measured by simpleperf: 0.12% /system/lib64/libcutils.so atrace_get_enabled_tag ART debug tracing (via PALette) is responsible for a significant portion of the time spent in the checks: 0.10% 0.07% /system/lib64/libcutils.so atrace_get_enabled_tags | -- atrace_get_enabled_tags | |--30.47%-- PaletteTraceEnabled | | | |--96.11%-- art::Monitor::TryLock(art::Thread*, bool) | | void art::Monitor::Lock<(art::LockReason)1>(art::Thread*) | | art::Monitor::MonitorEnter(art::Thread*, art::ObjPtr<art::mirror::Object>, bool) | | artLockObjectFromCode | | art_quick_lock_object_no_inline | | |--8.63%-- [hit in function] | | | | | |--18.62%-- android.os.Parcel.obtain | |--2.44%-- PaletteTraceIntegerValue | | | |--25.86%-- art::mirror::String::AllocFromModifiedUtf8(art::Thread*, int, char const*, int) | | | |--22.90%-- art::mirror::Object* art::gc::Heap::AllocLargeObject<false, art::mirror::SetLengthVisitor>(art::Thread*, art::ObjPtr<art::mirror::Class>*, unsigned long, art::mirror::SetLengthVisitor const&) | | | |--19.85%-- artAllocArrayFromCodeResolvedRegionTLAB | | | |--19.71%-- art::mirror::String::AllocFromUtf16(art::Thread*, int, unsigned short const*) | | | --11.70%-- art::mirror::Object::Clone(art::Handle<art::mirror::Object>, art::Thread*) We aren't going to use ATrace for ART in production systems, so disable debug tracing in non-debug builds. Test: simpleperf record -a; verify that PaletteTraceEnabled no longer appears under atrace_get_enabled_tags Change-Id: If5cdb18adb17b04f5f7eb7c59cfb3f9ceaecb5be
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions