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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 1844553003: Add API timeline durations for snapshot creation (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index cb540bc058b449093b21824851a0d9c7f0bf805a..0dc30a6357e89527d1249636cae3faa63420212a 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1466,6 +1466,7 @@ DART_EXPORT Dart_Handle Dart_CreateSnapshot(
intptr_t* isolate_snapshot_size) {
ASSERT(FLAG_load_deferred_eagerly);
DARTSCOPE(Thread::Current());
+ API_TIMELINE_DURATION;
Isolate* I = T->isolate();
if (vm_isolate_snapshot_buffer != NULL &&
vm_isolate_snapshot_size == NULL) {
@@ -1537,6 +1538,7 @@ static Dart_Handle createLibrarySnapshot(Dart_Handle library,
DART_EXPORT Dart_Handle Dart_CreateScriptSnapshot(uint8_t** buffer,
intptr_t* size) {
+ API_TIMELINE_DURATION;
return createLibrarySnapshot(Dart_Null(), buffer, size);
}
@@ -1544,6 +1546,7 @@ DART_EXPORT Dart_Handle Dart_CreateScriptSnapshot(uint8_t** buffer,
DART_EXPORT Dart_Handle Dart_CreateLibrarySnapshot(Dart_Handle library,
uint8_t** buffer,
intptr_t* size) {
+ API_TIMELINE_DURATION;
return createLibrarySnapshot(library, buffer, size);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698