From 62e7c097988a52add5f51640ff8cfd79229a9dbb Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 8 Jan 2019 09:43:01 +0000 Subject: Put the deoptimized method in the trace tag. Useful when debugging with a trace. Test: m Change-Id: I59cb5d6810acdeb7cdd40604f8b123cb42aa8be7 --- runtime/quick_exception_handler.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/quick_exception_handler.cc') 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: " -- cgit v1.2.3-59-g8ed1b