diff options
author | Ian Rogers <irogers@google.com> | 2014-07-15 15:36:11 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-07-15 17:07:49 -0700 |
commit | e63db27db913f1a88e2095a1ee8239b2bb9124e8 (patch) | |
tree | 893dee6783bca6717259321a6e4ba029c9c123e2 /runtime/globals.h | |
parent | 07b8441303ea82fca3cb85d71ecf8752d73cedd7 (diff) | |
download | art-e63db27db913f1a88e2095a1ee8239b2bb9124e8.zip art-e63db27db913f1a88e2095a1ee8239b2bb9124e8.tar.gz art-e63db27db913f1a88e2095a1ee8239b2bb9124e8.tar.bz2 |
Break apart header files.
Create libart-gtest for common runtime and compiler gtest routines.
Rename CompilerCallbacksImpl that is quick compiler specific.
Rename trace clock source constants to not use the overloaded profiler term.
Change-Id: I4aac4bdc7e7850c68335f81e59a390133b54e933
Diffstat (limited to 'runtime/globals.h')
-rw-r--r-- | runtime/globals.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/globals.h b/runtime/globals.h index 3a906f1..1d9f22c 100644 --- a/runtime/globals.h +++ b/runtime/globals.h @@ -105,6 +105,19 @@ static constexpr bool kUseBakerOrBrooksReadBarrier = kUseBakerReadBarrier || kUs // If true, references within the heap are poisoned (negated). static constexpr bool kPoisonHeapReferences = false; +// Kinds of tracing clocks. +enum TraceClockSource { + kTraceClockSourceThreadCpu, + kTraceClockSourceWall, + kTraceClockSourceDual, // Both wall and thread CPU clocks. +}; + +#if defined(HAVE_POSIX_CLOCKS) +static constexpr TraceClockSource kDefaultTraceClockSource = kTraceClockSourceDual; +#else +static constexpr TraceClockSource kDefaultTraceClockSource = kTraceClockSourceWall; +#endif + } // namespace art #endif // ART_RUNTIME_GLOBALS_H_ |