diff options
author | David Srbecky <dsrbecky@google.com> | 2018-11-30 13:41:14 +0000 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2018-12-14 16:32:47 +0000 |
commit | e3fc2d1644fd788509b834b01b83a28595721c47 (patch) | |
tree | ed18c7651b9968486ea91d7717f6e6bd1dbdb674 /compiler/optimizing/graph_visualizer.cc | |
parent | 58431a7cf863b2eb7fe25eff6a28ec376f2f151d (diff) |
Revert^2 "Reduce the number of calls to Jit::AddSamples."
The method is called for every invoke which is expensive.
Add samples, but don't check the consequences every time.
This reduces its cost from 3.5% to 1% (maps on device).
This reverts commit 0402f4b019c1d6c567b1c56589f1ea9170ab5dcc
and fixes 667-jit-jni-stub which relied on being able to set
the sample count to exactly one below the compilation threshold,
and then expected the compilation to happen on the next sample.
Test: ./art/test.py -b --host -r --ndebug
Test: ./art/test.py -b -r -t 570
Change-Id: I99c6d03f565f17fe6539ed89632d8f8bbda68107
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions