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

Unified Diff: runtime/vm/timeline.h

Issue 2977663003: [vm] Support flow events in Dart_TimelineEvent. (Closed)
Patch Set: Created 3 years, 5 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.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 0abf0254d91b0cdca4c8dda9dccb7fbfae28cc9a..34e169f0dd9d0c4d4a5bef2fc98b5ef192f1062c 100644
--- a/runtime/vm/timeline.h
+++ b/runtime/vm/timeline.h
@@ -158,6 +158,9 @@ class TimelineEvent {
kAsyncInstant,
kAsyncEnd,
kCounter,
+ kFlowBegin,
+ kFlowStep,
+ kFlowEnd,
kMetadata,
kNumEventTypes,
};
@@ -210,6 +213,16 @@ class TimelineEvent {
void Counter(const char* label,
int64_t micros = OS::GetCurrentMonotonicMicros());
+ void FlowBegin(const char* label,
+ int64_t async_id,
+ int64_t micros = OS::GetCurrentMonotonicMicros());
+ void FlowStep(const char* label,
+ int64_t async_id,
+ int64_t micros = OS::GetCurrentMonotonicMicros());
+ void FlowEnd(const char* label,
+ int64_t async_id,
+ int64_t micros = OS::GetCurrentMonotonicMicros());
+
void Metadata(const char* label,
int64_t micros = OS::GetCurrentMonotonicMicros());
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698