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

Unified Diff: runtime/vm/timeline.h

Issue 1964163002: Report 'timeOriginMicros' and 'timeExtentMicros' in Timeline and Profile service responses (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/profiler_service.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 1646d99efe29fbc19dc2399c1941a94afadf0c57..c251c2fe7be7981c12ab23194ac7f5aa64fe8b98 100644
--- a/runtime/vm/timeline.h
+++ b/runtime/vm/timeline.h
@@ -223,6 +223,11 @@ class TimelineEvent {
return timestamp1_;
}
+ // The lowest time value stored in this event.
+ int64_t LowTime() const;
+ // The highest time value stored in this event.
+ int64_t HighTime() const;
+
void PrintJSON(JSONStream* stream) const;
ThreadId thread() const {
@@ -719,8 +724,15 @@ class TimelineEventRecorder {
TimelineEvent* ThreadBlockStartEvent();
void ThreadBlockCompleteEvent(TimelineEvent* event);
+ void ResetTimeTracking();
+ void ReportTime(int64_t micros);
+ int64_t TimeOriginMicros() const;
+ int64_t TimeExtentMicros() const;
+
Mutex lock_;
uintptr_t async_id_;
+ int64_t time_low_micros_;
+ int64_t time_high_micros_;
friend class TimelineEvent;
friend class TimelineEventBlockIterator;
« no previous file with comments | « runtime/vm/profiler_service.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698