diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2019-01-08 09:43:01 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2019-01-08 14:15:24 +0000 |
commit | 62e7c097988a52add5f51640ff8cfd79229a9dbb (patch) | |
tree | bbdc0ab64f8f6dffd8fb38029b8fab7becd72144 /runtime/quick_exception_handler.cc | |
parent | e7bd7aa01c05ed8ed7d2227f5fc7c4e8ea0861cf (diff) |
Put the deoptimized method in the trace tag.
Useful when debugging with a trace.
Test: m
Change-Id: I59cb5d6810acdeb7cdd40604f8b123cb42aa8be7
Diffstat (limited to 'runtime/quick_exception_handler.cc')
-rw-r--r-- | runtime/quick_exception_handler.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc index 0d570c39ae..3bc718b058 100644 --- a/runtime/quick_exception_handler.cc +++ b/runtime/quick_exception_handler.cc @@ -20,6 +20,7 @@ #include "art_method-inl.h" #include "base/enums.h" #include "base/logging.h" // For VLOG_IS_ON. +#include "base/systrace.h" #include "dex/dex_file_types.h" #include "dex/dex_instruction.h" #include "entrypoints/entrypoint_utils.h" @@ -592,6 +593,10 @@ void QuickExceptionHandler::DeoptimizeSingleFrame(DeoptimizationKind kind) { // Compiled code made an explicit deoptimization. ArtMethod* deopt_method = visitor.GetSingleFrameDeoptMethod(); + SCOPED_TRACE << "Deoptimizing " + << deopt_method->PrettyMethod() + << ": " << GetDeoptimizationKindName(kind); + DCHECK(deopt_method != nullptr); if (VLOG_IS_ON(deopt) || kDebugExceptionDelivery) { LOG(INFO) << "Single-frame deopting: " |