summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2020-06-19 00:52:16 +0200
committerJorim Jaggi <jjaggi@google.com>2020-06-25 19:02:14 +0200
commit73b7233e26fd4c23916923d906f9340cd84f4202 (patch)
treeada8f470f9fa00724ef922da9828ede34f040dd4 /annotations/generate_annotated_java_files.py
parent5d3661115d1ebcc79bfd2b146135fb6ff3ab7894 (diff)
Pass in callsite of SurfaceControl constructor explicitly (2/3)
Creating a new Throwable (and filling in the stack trace) can take up to 150us. Since we do this on the critical path when sending over SurfaceControl via binder multiple times, this is too much. Instead, add an option to pass in callsite manually. stackAndTrackingEnabled is usually disabled on -user builds, however, all our performance tests and dogfooding happens on -userdebug builds for which this is enabled, so it needs to be fast. Test: RelayoutPerfTest Bug: 159056748 Change-Id: Id6575745618eed5ab4aa4937b82b8dbad4978844
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions