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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/profiler_service.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_TIMELINE_H_ 5 #ifndef VM_TIMELINE_H_
6 #define VM_TIMELINE_H_ 6 #define VM_TIMELINE_H_
7 7
8 #include "include/dart_tools_api.h" 8 #include "include/dart_tools_api.h"
9 9
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 int64_t ThreadCPUTimeOrigin() const; 216 int64_t ThreadCPUTimeOrigin() const;
217 217
218 int64_t TimeOrigin() const; 218 int64_t TimeOrigin() const;
219 int64_t AsyncId() const; 219 int64_t AsyncId() const;
220 int64_t TimeDuration() const; 220 int64_t TimeDuration() const;
221 int64_t TimeEnd() const { 221 int64_t TimeEnd() const {
222 ASSERT(IsFinishedDuration()); 222 ASSERT(IsFinishedDuration());
223 return timestamp1_; 223 return timestamp1_;
224 } 224 }
225 225
226 // The lowest time value stored in this event.
227 int64_t LowTime() const;
228 // The highest time value stored in this event.
229 int64_t HighTime() const;
230
226 void PrintJSON(JSONStream* stream) const; 231 void PrintJSON(JSONStream* stream) const;
227 232
228 ThreadId thread() const { 233 ThreadId thread() const {
229 return thread_; 234 return thread_;
230 } 235 }
231 236
232 void set_thread(ThreadId tid) { 237 void set_thread(ThreadId tid) {
233 thread_ = tid; 238 thread_ = tid;
234 } 239 }
235 240
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 virtual void CompleteEvent(TimelineEvent* event) = 0; 717 virtual void CompleteEvent(TimelineEvent* event) = 0;
713 virtual TimelineEventBlock* GetHeadBlockLocked() = 0; 718 virtual TimelineEventBlock* GetHeadBlockLocked() = 0;
714 virtual TimelineEventBlock* GetNewBlockLocked() = 0; 719 virtual TimelineEventBlock* GetNewBlockLocked() = 0;
715 virtual void Clear() = 0; 720 virtual void Clear() = 0;
716 721
717 // Utility method(s). 722 // Utility method(s).
718 void PrintJSONMeta(JSONArray* array) const; 723 void PrintJSONMeta(JSONArray* array) const;
719 TimelineEvent* ThreadBlockStartEvent(); 724 TimelineEvent* ThreadBlockStartEvent();
720 void ThreadBlockCompleteEvent(TimelineEvent* event); 725 void ThreadBlockCompleteEvent(TimelineEvent* event);
721 726
727 void ResetTimeTracking();
728 void ReportTime(int64_t micros);
729 int64_t TimeOriginMicros() const;
730 int64_t TimeExtentMicros() const;
731
722 Mutex lock_; 732 Mutex lock_;
723 uintptr_t async_id_; 733 uintptr_t async_id_;
734 int64_t time_low_micros_;
735 int64_t time_high_micros_;
724 736
725 friend class TimelineEvent; 737 friend class TimelineEvent;
726 friend class TimelineEventBlockIterator; 738 friend class TimelineEventBlockIterator;
727 friend class TimelineStream; 739 friend class TimelineStream;
728 friend class TimelineTestHelper; 740 friend class TimelineTestHelper;
729 friend class Timeline; 741 friend class Timeline;
730 742
731 private: 743 private:
732 DISALLOW_COPY_AND_ASSIGN(TimelineEventRecorder); 744 DISALLOW_COPY_AND_ASSIGN(TimelineEventRecorder);
733 }; 745 };
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 884
873 private: 885 private:
874 TimelineEventBlock* current_; 886 TimelineEventBlock* current_;
875 TimelineEventRecorder* recorder_; 887 TimelineEventRecorder* recorder_;
876 }; 888 };
877 889
878 890
879 } // namespace dart 891 } // namespace dart
880 892
881 #endif // VM_TIMELINE_H_ 893 #endif // VM_TIMELINE_H_
OLDNEW
« 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