diff options
author | Jeff Hao <jeffhao@google.com> | 2014-01-15 19:34:35 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-01-15 19:34:35 +0000 |
commit | 27dbc31979e9f00d65e03f8942ad554ad274c1c7 (patch) | |
tree | 36ae7008ce9b9e0a441c32a2f5dee5970c565741 /runtime/trace.cc | |
parent | e99f8c81be6bb3fbe4a0b5658b2c039f56d13361 (diff) | |
parent | 4044bdac490777cbc8a12d467bec675ef8aa6eb1 (diff) | |
download | art-27dbc31979e9f00d65e03f8942ad554ad274c1c7.tar.gz art-27dbc31979e9f00d65e03f8942ad554ad274c1c7.tar.bz2 art-27dbc31979e9f00d65e03f8942ad554ad274c1c7.zip |
Merge "Add sample profiling interface to startMethodTracing."
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 5d053b65a6..b0f6e37622 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())); |