diff options
author | Jeff Hao <jeffhao@google.com> | 2014-01-06 15:50:45 -0800 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2014-01-06 15:50:45 -0800 |
commit | 4044bdac490777cbc8a12d467bec675ef8aa6eb1 (patch) | |
tree | e1f05216f500720265fa79c4dec889e7d398b69c /runtime/trace.cc | |
parent | 51c4550a96ff62003d5fc1df25626f578f7b7111 (diff) | |
download | art-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.cc | 1 |
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())); |