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

Side by Side Diff: runtime/vm/timeline_analysis.cc

Issue 1295563002: Allow TimelineAnalysis to work on any TimelineEventRecorder (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/timeline_analysis.h ('k') | no next file » | 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 #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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/timeline_analysis.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698