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

Unified Diff: runtime/bin/main.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 | « runtime/bin/isolate_data.h ('k') | runtime/include/dart_tools_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 8d58c705399c799434a8ec8b6568f7efae798621..05e09c9d277ac7e0dcd265bb3d52b55419f6c386 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -840,9 +840,11 @@ static Dart_Isolate CreateIsolateAndSetupHelper(const char* script_uri,
result = Dart_RunLoop();
CHECK_RESULT(result);
- if (isolate_data->load_async_id >= 0) {
- Dart_TimelineAsyncEnd("LoadScript", isolate_data->load_async_id);
- }
+ Dart_TimelineEvent("LoadScript",
+ Dart_TimelineGetMicros(),
+ Dart_GetMainPortId(),
+ Dart_Timeline_Event_Async_End,
+ 0, NULL, NULL);
result = DartUtils::SetupIOLibrary(script_uri);
CHECK_RESULT(result);
« no previous file with comments | « runtime/bin/isolate_data.h ('k') | runtime/include/dart_tools_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698