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

Unified Diff: runtime/bin/dartutils.cc

Issue 1848683002: Remove redundant timeline API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | runtime/bin/isolate_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « no previous file | runtime/bin/isolate_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698