summaryrefslogtreecommitdiffstats
path: root/runtime/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/trace.h')
-rw-r--r--runtime/trace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/trace.h b/runtime/trace.h
index d810df05f..1af12831e 100644
--- a/runtime/trace.h
+++ b/runtime/trace.h
@@ -42,6 +42,12 @@ enum ProfilerClockSource {
kProfilerClockSourceDual, // Both wall and thread CPU clocks.
};
+#if defined(HAVE_POSIX_CLOCKS)
+const ProfilerClockSource kDefaultProfilerClockSource = kProfilerClockSourceDual;
+#else
+const ProfilerClockSource kDefaultProfilerClockSource = kProfilerClockSourceWall;
+#endif
+
enum TracingMode {
kTracingInactive,
kMethodTracingActive,