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

Unified Diff: runtime/vm/timeline.h

Issue 1849643002: Add support for async, metadata, and counter timeline events to be reported by the embedder (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/vm/dart_api_impl_test.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/timeline.h
diff --git a/runtime/vm/timeline.h b/runtime/vm/timeline.h
index 0e0cf734ba3436f9f75d1bf7e5833e8366bced77..9196ee08e81e8ec8f14a99f46eba34becf71428c 100644
--- a/runtime/vm/timeline.h
+++ b/runtime/vm/timeline.h
@@ -128,6 +128,8 @@ class TimelineEvent {
kAsyncBegin,
kAsyncInstant,
kAsyncEnd,
+ kCounter,
+ kMetadata,
kNumEventTypes,
};
@@ -169,6 +171,12 @@ class TimelineEvent {
void End(const char* label,
int64_t micros = OS::GetCurrentMonotonicMicros());
+ void Counter(const char* label,
+ int64_t micros = OS::GetCurrentMonotonicMicros());
+
+ void Metadata(const char* label,
+ int64_t micros = OS::GetCurrentMonotonicMicros());
+
// Completes this event with pre-serialized JSON. Copies |json|.
void CompleteWithPreSerializedJSON(const char* json);
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698