Chromium Code Reviews| Index: runtime/lib/timeline.cc |
| diff --git a/runtime/lib/timeline.cc b/runtime/lib/timeline.cc |
| index d8bef457202901fbf7c4ac1b5f7bc84760635924..3926b47731942b8e5b12c26a913bd89b9949a90d 100644 |
| --- a/runtime/lib/timeline.cc |
| +++ b/runtime/lib/timeline.cc |
| @@ -15,6 +15,17 @@ namespace dart { |
| // Native implementations for the dart:developer library. |
| +DEFINE_NATIVE_ENTRY(Timline_isDartStreamEnabled, 0) { |
|
rmacnak
2016/05/16 23:10:52
Timeline
|
| + if (!FLAG_support_timeline) { |
| + return Bool::False().raw(); |
| + } |
| + if (Timeline::GetDartStream()->enabled()) { |
| + return Bool::True().raw(); |
| + } |
| + return Bool::False().raw(); |
| +} |
| + |
| + |
| DEFINE_NATIVE_ENTRY(Timeline_getIsolateNum, 0) { |
| return Integer::New(static_cast<int64_t>(isolate->main_port()), Heap::kOld); |
| } |