summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorYunfan Chen <yunfanc@google.com>2019-03-27 18:35:06 +0900
committerYunfan Chen <yunfanc@google.com>2019-03-29 13:22:02 +0900
commitb4fe58c2179b0ccdbaa86055a127e2a73d170134 (patch)
tree283f4bb76f7a0d4a40e077cf7747e9628a39fc38 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentd711ed3021a68e106b1eb1654671434043f0e5d5 (diff)
Refine calls related to process global configuration
updateFrom is an expensive method, and we want to avoid it if possible. If a process has not register to any display as a configuration change listener, we do not need to do the manual merge in getConfiguration. Another improvement is, as getGlobalConfiguration returns the mFullConfiguration itself without copy, getProcessGlobalConfiguration should be safe to do the same thing. Remove the copy to furthur accelerate the related calls. But make a copy before changing it in getConfiguration. Test: go/wm-smoke Test: ddms shows a great performance improvement Test: atest com.android.uibench.janktests.UiBenchJankTests Bug: 129269005 Bug: 129389526 Change-Id: Ie560917d57932e58bf1db796814eb1c519706f35
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions