summaryrefslogtreecommitdiffstats
path: root/runtime/trace.cc
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2014-01-06 15:50:45 -0800
committerJeff Hao <jeffhao@google.com>2014-01-06 15:50:45 -0800
commit4044bdac490777cbc8a12d467bec675ef8aa6eb1 (patch)
treee1f05216f500720265fa79c4dec889e7d398b69c /runtime/trace.cc
parent51c4550a96ff62003d5fc1df25626f578f7b7111 (diff)
downloadart-4044bdac490777cbc8a12d467bec675ef8aa6eb1.tar.gz
art-4044bdac490777cbc8a12d467bec675ef8aa6eb1.tar.bz2
art-4044bdac490777cbc8a12d467bec675ef8aa6eb1.zip
Add sample profiling interface to startMethodTracing.
Art side of this change. Also changed libcore and frameworks base. Change-Id: I556678013cf1f4e9bef064a1ae43a6109303797c
Diffstat (limited to 'runtime/trace.cc')
-rw-r--r--runtime/trace.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/trace.cc b/runtime/trace.cc
index da2c80af88..2dac71ed60 100644
--- a/runtime/trace.cc
+++ b/runtime/trace.cc
@@ -299,6 +299,7 @@ void Trace::CompareAndUpdateStackTrace(Thread* thread,
void* Trace::RunSamplingThread(void* arg) {
Runtime* runtime = Runtime::Current();
int interval_us = reinterpret_cast<int>(arg);
+ CHECK_GE(interval_us, 0);
CHECK(runtime->AttachCurrentThread("Sampling Profiler", true, runtime->GetSystemThreadGroup(),
!runtime->IsCompiler()));