summaryrefslogtreecommitdiffstats
path: root/runtime/trace.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-05-06 11:34:34 +0100
committerNicolas Geoffray <ngeoffray@google.com>2015-05-11 15:23:25 +0100
commit8e5bd18fc665d7ec5461ea068e98740a65da754c (patch)
tree83441cdfdab06709b573aad2ab731cc65c10b9f1 /runtime/trace.cc
parentcdeb0b5fede4c06488f43a212591e661d946bc78 (diff)
downloadart-8e5bd18fc665d7ec5461ea068e98740a65da754c.tar.gz
art-8e5bd18fc665d7ec5461ea068e98740a65da754c.tar.bz2
art-8e5bd18fc665d7ec5461ea068e98740a65da754c.zip
Add a flag to StackVisitor for inlining.
The flag tells whether the stack walk needs to include inlined Java frames. This does not do anything just yet, as we're not inlining anyways. Change-Id: I716e25094fe56fa335ca1f9a398c1bcdba478e73
Diffstat (limited to 'runtime/trace.cc')
-rw-r--r--runtime/trace.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/trace.cc b/runtime/trace.cc
index 3b8feda2cd..76367923c0 100644
--- a/runtime/trace.cc
+++ b/runtime/trace.cc
@@ -91,8 +91,9 @@ static constexpr uint8_t kOpNewThread = 2U;
class BuildStackTraceVisitor : public StackVisitor {
public:
- explicit BuildStackTraceVisitor(Thread* thread) : StackVisitor(thread, nullptr),
- method_trace_(Trace::AllocStackTrace()) {}
+ explicit BuildStackTraceVisitor(Thread* thread)
+ : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
+ method_trace_(Trace::AllocStackTrace()) {}
bool VisitFrame() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
mirror::ArtMethod* m = GetMethod();