summaryrefslogtreecommitdiffstats
path: root/runtime/globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/globals.h')
-rw-r--r--runtime/globals.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/globals.h b/runtime/globals.h
index 0756a73a80..084547558c 100644
--- a/runtime/globals.h
+++ b/runtime/globals.h
@@ -110,16 +110,16 @@ static constexpr bool kPoisonHeapReferences = false;
#endif
// Kinds of tracing clocks.
-enum TraceClockSource {
- kTraceClockSourceThreadCpu,
- kTraceClockSourceWall,
- kTraceClockSourceDual, // Both wall and thread CPU clocks.
+enum class TraceClockSource {
+ kThreadCpu,
+ kWall,
+ kDual, // Both wall and thread CPU clocks.
};
#if defined(__linux__)
-static constexpr TraceClockSource kDefaultTraceClockSource = kTraceClockSourceDual;
+static constexpr TraceClockSource kDefaultTraceClockSource = TraceClockSource::kDual;
#else
-static constexpr TraceClockSource kDefaultTraceClockSource = kTraceClockSourceWall;
+static constexpr TraceClockSource kDefaultTraceClockSource = TraceClockSource::kWall;
#endif
static constexpr bool kDefaultMustRelocate = true;