| Index: runtime/lib/timeline.cc
|
| diff --git a/runtime/lib/timeline.cc b/runtime/lib/timeline.cc
|
| index 6923e6f12731e91e7e76cc419a000c64bb57a75e..300d6e302d9ec9aa4a13beb2fe56bb32b36a07e8 100644
|
| --- a/runtime/lib/timeline.cc
|
| +++ b/runtime/lib/timeline.cc
|
| @@ -16,12 +16,14 @@ namespace dart {
|
| // Native implementations for the dart:developer library.
|
|
|
| DEFINE_NATIVE_ENTRY(Timeline_isDartStreamEnabled, 0) {
|
| +#ifndef PRODUCT
|
| if (!FLAG_support_timeline) {
|
| return Bool::False().raw();
|
| }
|
| if (Timeline::GetDartStream()->enabled()) {
|
| return Bool::True().raw();
|
| }
|
| +#endif // !PRODUCT
|
| return Bool::False().raw();
|
| }
|
|
|
|
|