OSDN Git Service

Make it possible to enable native debugging through debug flags
authorTamas Berghammer <tberghammer@google.com>
Fri, 5 Feb 2016 18:09:08 +0000 (18:09 +0000)
committerTamas Berghammer <tberghammer@google.com>
Mon, 8 Feb 2016 10:53:01 +0000 (10:53 +0000)
commitc94a61f06ffc13288c67891048128c987b29bf33
tree83ed6106d14b211281c9ba2a677aed97ebc7657b
parentac6a195ec8e1b5a7a6bd3d0c53d8997ff7a5e2cc
Make it possible to enable native debugging through debug flags

* Add support for a new debug flag disabling the optimizations in
  the compiler and enable the generation of some additional debug
  info (--native-debuggable).
* Ignore the content of the oat files if force JIT is enabled so
  the runtime ignores the AOT-ed code what doesn't contain any
  debug info.

Time measurements on a Nexus 5 with running:
am start -n com.facebook.katana/com.facebook.katana.LoginActivity -W

Before change:             | AVG | DEV
--------------------------------------
ThisTime:  549 492 512 511 | 516 | 24
TotalTime: 549 492 512 511 | 516 | 24
WaitTime:  662 511 528 526 | 557 | 71

After change:              | AVG | DEV
--------------------------------------
ThisTime:  530 467 503 544 | 511 | 34
TotalTime: 530 467 503 544 | 511 | 34
WaitTime:  551 497 536 583 | 541 | 36

Based on the numbers the speed impact of the change is less then the
accuracy of the measurement and it is also negligible.

The minor speed improvement displayed in the measurements are just
the cause of the variance of the measurement and not caused by this
change.

Change-Id: Ia9022cbc1bbfcc072314b6c95f63a4bf8060c36c
runtime/class_linker.cc
runtime/class_linker.h
runtime/interpreter/interpreter.cc
runtime/interpreter/interpreter_common.cc
runtime/native/dalvik_system_ZygoteHooks.cc