summaryrefslogtreecommitdiff
path: root/compiler/utils/jni_macro_assembler.h
diff options
context:
space:
mode:
author Eric Holk <eholk@google.com> 2020-02-25 15:10:50 -0800
committer Treehugger Robot <treehugger-gerrit@google.com> 2020-02-26 23:45:02 +0000
commit6f5e72942c5b41ca0fad0dfedf8089cdc5221f6e (patch)
tree1de211b1be8ef420db49b9cfb788255bf1d6c7c4 /compiler/utils/jni_macro_assembler.h
parent03e871678db7585a621740fb1ce65a75fdc44319 (diff)
Only start timer in IncrementDisableThreadFlip when waiting
IncrementDisableThreadFlip is a hot function in System Server when processing many binder transactions. There was code to track how much time was spent waiting and log long waits. These days, long waits rarely happen, but we were starting the timer even when we did not have to wait. This led to NanoTime() showing up high in profiles. This changes moves the first call to NanoTime() until after we know we will spend at least some time waiting. After this change, NanoTime() did not show up in the profile at all. Bug: 150326920 Test: device boots Change-Id: I6dc4cee7d18a3fbd6d2f73281cddba407e481d67
Diffstat (limited to 'compiler/utils/jni_macro_assembler.h')
0 files changed, 0 insertions, 0 deletions