diff options
author | 2019-05-02 11:04:13 -0700 | |
---|---|---|
committer | 2019-05-03 19:46:42 +0000 | |
commit | 765b2a04576f4e985a88165456f5ee55cdfe56b8 (patch) | |
tree | 1eb91d1e6dcdee31b5b396ee0ed8baf8c94aca96 /runtime/interpreter/interpreter_common.h | |
parent | 023533677989028d48f4e64dad0a5b3b4e59b726 (diff) |
Add -verbose:interpreter
Adds a mode to track what methods are being interpreted. Good
for debugging interpreter usage during app startup.
Bug: 130185360
Test: test-art-host
Change-Id: I8119f79e534cdad7d6a72d4f01115a288e9c8d9a
Diffstat (limited to 'runtime/interpreter/interpreter_common.h')
-rw-r--r-- | runtime/interpreter/interpreter_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/interpreter/interpreter_common.h b/runtime/interpreter/interpreter_common.h index 6366035a4c..19da77dd3a 100644 --- a/runtime/interpreter/interpreter_common.h +++ b/runtime/interpreter/interpreter_common.h @@ -33,6 +33,7 @@ #include "art_method-inl.h" #include "base/enums.h" #include "base/locks.h" +#include "base/logging.h" #include "base/macros.h" #include "class_linker-inl.h" #include "class_root.h" @@ -278,6 +279,8 @@ static ALWAYS_INLINE bool DoInvoke(Thread* self, self->PushShadowFrame(new_shadow_frame); self->EndAssertNoThreadSuspension(old_cause); + VLOG(interpreter) << "Interpreting " << called_method->PrettyMethod(); + DCheckStaticState(self, called_method); while (true) { // Mterp does not support all instrumentation/debugging. |