OLD | NEW |
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 #include "vm/timeline_analysis.h" | 5 #include "vm/timeline_analysis.h" |
6 | 6 |
7 #include "vm/flags.h" | 7 #include "vm/flags.h" |
8 | 8 |
9 namespace dart { | 9 namespace dart { |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 void TimelineAnalysisThread::Finalize() { | 38 void TimelineAnalysisThread::Finalize() { |
39 blocks_.Sort(CompareBlocksLowerTimeBound); | 39 blocks_.Sort(CompareBlocksLowerTimeBound); |
40 } | 40 } |
41 | 41 |
42 | 42 |
43 TimelineAnalysis::TimelineAnalysis(Zone* zone, | 43 TimelineAnalysis::TimelineAnalysis(Zone* zone, |
44 Isolate* isolate, | 44 Isolate* isolate, |
45 TimelineEventEndlessRecorder* recorder) | 45 TimelineEventRecorder* recorder) |
46 : zone_(zone), | 46 : zone_(zone), |
47 isolate_(isolate), | 47 isolate_(isolate), |
48 recorder_(recorder), | 48 recorder_(recorder), |
49 has_error_(false), | 49 has_error_(false), |
50 error_msg_(NULL) { | 50 error_msg_(NULL) { |
51 ASSERT(zone_ != NULL); | 51 ASSERT(zone_ != NULL); |
52 ASSERT(isolate_ != NULL); | 52 ASSERT(isolate_ != NULL); |
53 ASSERT(recorder_ != NULL); | 53 ASSERT(recorder_ != NULL); |
54 } | 54 } |
55 | 55 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 has_error_ = true; | 125 has_error_ = true; |
126 va_list args; | 126 va_list args; |
127 va_start(args, format); | 127 va_start(args, format); |
128 error_msg_ = zone_->VPrint(format, args); | 128 error_msg_ = zone_->VPrint(format, args); |
129 ASSERT(error_msg_ != NULL); | 129 ASSERT(error_msg_ != NULL); |
130 } | 130 } |
131 | 131 |
132 | 132 |
133 TimelinePauses::TimelinePauses(Zone* zone, | 133 TimelinePauses::TimelinePauses(Zone* zone, |
134 Isolate* isolate, | 134 Isolate* isolate, |
135 TimelineEventEndlessRecorder* recorder) | 135 TimelineEventRecorder* recorder) |
136 : TimelineAnalysis(zone, isolate, recorder) { | 136 : TimelineAnalysis(zone, isolate, recorder) { |
137 } | 137 } |
138 | 138 |
139 } // namespace dart | 139 } // namespace dart |
OLD | NEW |