Index: runtime/bin/dartutils.cc |
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc |
index 9a2f9ec35ed3951faf41266ba7ea4380ba6c2320..764c00ecf0b311ae4afef90f0048f3f7928a15c8 100644 |
--- a/runtime/bin/dartutils.cc |
+++ b/runtime/bin/dartutils.cc |
@@ -498,10 +498,12 @@ void DartUtils::WriteMagicNumber(File* file) { |
Dart_Handle DartUtils::LoadScript(const char* script_uri) { |
+ Dart_TimelineEvent("LoadScript", |
+ Dart_TimelineGetMicros(), |
+ Dart_GetMainPortId(), |
+ Dart_Timeline_Event_Async_Begin, |
+ 0, NULL, NULL); |
Dart_Handle uri = Dart_NewStringFromCString(script_uri); |
- IsolateData* isolate_data = |
- reinterpret_cast<IsolateData*>(Dart_CurrentIsolateData()); |
- Dart_TimelineAsyncBegin("LoadScript", &(isolate_data->load_async_id)); |
return LoadDataAsync_Invoke(Dart_Null(), uri, Dart_Null()); |
} |