From: Jeff Hao Date: Wed, 30 Jul 2014 16:42:18 +0000 (+0000) Subject: am c7c6d18a: Stop thread from reattaching during runtime shutdown while tracing. X-Git-Tag: android-x86-6.0-r1~145^2~2449 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=edf7bbb9c32ca62a6bdfa8ecb9ba19c08c36177d;p=android-x86%2Fart.git am c7c6d18a: Stop thread from reattaching during runtime shutdown while tracing. * commit 'c7c6d18a90079b67a7592d3f2cb3d4c6f0081512': Stop thread from reattaching during runtime shutdown while tracing. --- edf7bbb9c32ca62a6bdfa8ecb9ba19c08c36177d diff --cc runtime/trace.cc index f51b8c435,0f5e06ad6..ca5e150b8 --- a/runtime/trace.cc +++ b/runtime/trace.cc @@@ -174,15 -175,15 +174,15 @@@ bool Trace::UseThreadCpuClock() } bool Trace::UseWallClock() { - return (clock_source_ == kProfilerClockSourceWall) || - (clock_source_ == kProfilerClockSourceDual); + return (clock_source_ == kTraceClockSourceWall) || + (clock_source_ == kTraceClockSourceDual); } - static void MeasureClockOverhead(Trace* trace) { - if (trace->UseThreadCpuClock()) { + void Trace::MeasureClockOverhead() { + if (UseThreadCpuClock()) { Thread::Current()->GetCpuMicroTime(); } - if (trace->UseWallClock()) { + if (UseWallClock()) { MicroTime(); } }