diff options
| author | Andy McFadden <fadden@android.com> | 2010-08-25 12:05:44 -0700 |
|---|---|---|
| committer | Andy McFadden <fadden@android.com> | 2010-08-25 14:41:33 -0700 |
| commit | ea4143449084917fb5ec25b1f3b29a1130284432 (patch) | |
| tree | 146c20c6458f0ddae2b640057e97ce29ac2695c1 /vm/compiler/codegen/arm/CodegenDriver.c | |
| parent | 399ded6e82d03c6fb10f0bd84287f211f1c1195b (diff) | |
Add option for specifying wall-clock in method profiling.
Normally you want to use the per-thread CPU clock rather than the wall
clock, because (a) it's more useful and (b) traceview goes a little nuts
if you don't. However, it's useful for some performance testing.
The command-line option allows you to switch modes like this:
% adb shell stop
% adb shell setprop dalvik.vm.extra-opts -Xprofile:wallclock
% adb shell start
This also changes the somewhat nebulous "clock=global" trace header line
to "clock=wall". Nothing looks at this anyway so I'm not worried
about breaking compatibility.
While I was in here, I fixed a couple of problems caused by failure to
initialize data structures that made dmtracedump crash (yay valgrind).
Bug 2943229.
Change-Id: Ib8884027c0a7e93044a3284802b176ea991387b5
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions
