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

Side by Side Diff: pkg/compiler/tool/perf.dart

Issue 2875703002: Fix compiler.perf script (Closed)
Patch Set: Created 3 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 | « no previous file | pkg/compiler/tool/perf_test.dart » ('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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /// An entrypoint used to run portions of dart2js and measure its performance. 5 /// An entrypoint used to run portions of dart2js and measure its performance.
6 library compiler.tool.perf; 6 library compiler.tool.perf;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 (reporter as CompilerDiagnosticReporter) 375 (reporter as CompilerDiagnosticReporter)
376 .reportSuppressedMessagesSummary(); 376 .reportSuppressedMessagesSummary();
377 377
378 if (compilationFailed) { 378 if (compilationFailed) {
379 // TODO(sigmund): more diagnostics? 379 // TODO(sigmund): more diagnostics?
380 print('compilation failed!'); 380 print('compilation failed!');
381 exit(1); 381 exit(1);
382 } 382 }
383 383
384 backend.onResolutionEnd();
384 closeResolution(); 385 closeResolution();
385 var program = (backend as dynamic).kernelTask.program; 386 var program = (backend as dynamic).kernelTask.program;
386 print('total libraries: ${program.libraries.length}'); 387 print('total libraries: ${program.libraries.length}');
387 }); 388 });
388 } 389 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/tool/perf_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698