summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2016-12-15 22:29:51 -0800
committerWei Wang <wvw@google.com>2017-01-05 10:38:40 -0800
commita5c336c32dae4586ff88d047a6def87b23d83d26 (patch)
tree8398c56691d7d5c2f9c33ab6aa2365b8e41a0a2c /rs/java/android/renderscript/Program.java
parent220c4155f7278b04e4005d2159cddc2e259a999b (diff)
Move ProcessCpuTracker.init into CpuTracker thread
ProcessCpuTracker.init is slow to start, moving it out of main thread will accelerate the boot up. ProcessCpuTracker.init is protected with synchronized keyword, so once the CpuTracker thread is up and running, we should not see any racing condition caused by this move. This changes saves ~140ms starting time on marlin Test: run test frameworks/base/tests/ActivityTests Bug: 33681304 Change-Id: I260a57ca721999be3a84c0e43837d684e47e3941
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions