Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Unified Diff: runtime/lib/timeline.cc

Issue 2117593002: Fuchsia: Initial check-in. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/fuchsia_test.cc ('k') | runtime/platform/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/timeline.cc
diff --git a/runtime/lib/timeline.cc b/runtime/lib/timeline.cc
index b5b397db5ee0ae40cae014ee6ce6d81c547084ce..6923e6f12731e91e7e76cc419a000c64bb57a75e 100644
--- a/runtime/lib/timeline.cc
+++ b/runtime/lib/timeline.cc
@@ -54,6 +54,7 @@ DEFINE_NATIVE_ENTRY(Timeline_getThreadCpuClock, 0) {
DEFINE_NATIVE_ENTRY(Timeline_reportTaskEvent, 6) {
+#ifndef PRODUCT
if (!FLAG_support_timeline) {
return Object::null();
}
@@ -114,12 +115,13 @@ DEFINE_NATIVE_ENTRY(Timeline_reportTaskEvent, 6) {
// json was allocated in the zone and a copy will be stored in event.
event->CompleteWithPreSerializedJSON(json);
-
+#endif
return Object::null();
}
DEFINE_NATIVE_ENTRY(Timeline_reportCompleteEvent, 5) {
+#ifndef PRODUCT
if (!FLAG_support_timeline) {
return Object::null();
}
@@ -185,12 +187,13 @@ DEFINE_NATIVE_ENTRY(Timeline_reportCompleteEvent, 5) {
end_cpu);
// json was allocated in the zone and a copy will be stored in event.
event->CompleteWithPreSerializedJSON(json);
-
+#endif
return Object::null();
}
DEFINE_NATIVE_ENTRY(Timeline_reportInstantEvent, 4) {
+#ifndef PRODUCT
if (!FLAG_support_timeline) {
return Object::null();
}
@@ -228,7 +231,7 @@ DEFINE_NATIVE_ENTRY(Timeline_reportInstantEvent, 4) {
event->Instant("", start.AsInt64Value());
// json was allocated in the zone and a copy will be stored in event.
event->CompleteWithPreSerializedJSON(json);
-
+#endif
return Object::null();
}
« no previous file with comments | « runtime/bin/fuchsia_test.cc ('k') | runtime/platform/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698