summaryrefslogtreecommitdiffstats
path: root/runtime/trace.h
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-03-02 18:24:38 -0800
committerBrian Carlstrom <bdc@google.com>2014-03-03 13:31:40 -0800
commit491ca9e75fad381468dd7f5fdbff56d1a9738dd7 (patch)
tree4a88d05188aebbcbe868a27b58fc1a932f914ce2 /runtime/trace.h
parent82e3a8ef9cd776d7026b45fe7fb6c72bcfd61394 (diff)
downloadart-491ca9e75fad381468dd7f5fdbff56d1a9738dd7.zip
art-491ca9e75fad381468dd7f5fdbff56d1a9738dd7.tar.gz
art-491ca9e75fad381468dd7f5fdbff56d1a9738dd7.tar.bz2
Add ART -help and -showversion
Bug: https://code.google.com/p/android/issues/detail?id=62149 Change-Id: I5c21c0433f5f341f94e7d977e8d2d69cc46d6fe3
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 d810df0..1af1283 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,