diff options
author | Vladimir Marko <vmarko@google.com> | 2020-02-20 17:07:55 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2020-03-18 11:13:12 +0000 |
commit | 92053840f11aba607284c64269ac92f6c00448e4 (patch) | |
tree | 4d04745ee4d25126fe9806e33237521012bf9eff /compiler/optimizing/graph_visualizer.cc | |
parent | 4f2bee1a0c73f00e0b1caf7ad0a8b282bc44952d (diff) |
Avoid dex2dex initialization if not compiling.
Reduces the compilation time for the boot image extension
in memory by ~0.1s.
Also record timing for ImageWriter::PreloadDexCaches() and
and fix naming for CompilerDriver::SetVerifiedDexFile()
timing to not be confused with VerifyDexFile().
(cherry picked from commit f639bf4c6b542553f727dc1a3262d9a4fd887fe5)
Test: aosp_taimen-userdebug boots;
adb root && \
adb shell stop && \
adb shell setprop dalvik.vm.boot-image \
'boot.art:/nonx/boot-framework.art!/system/etc/boot-image.prof' && \
adb shell 'setprop dalvik.vm.extra-opts \
"-Ximage-compiler-option --dump-timings"' && \
adb shell start # Starts correctly
# Check dex2oat timing in logcat
Bug: 119800099
Bug: 150193586
Change-Id: I31846738a66c95eda28e873eac724a3949ac3f48
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions