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

Side by Side Diff: pkg/analysis_server/benchmark/integration/local_runner.dart

Issue 1249793007: performance measurement mods: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 5 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
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 import 'dart:io'; 5 import 'dart:io';
6 import 'package:path/path.dart'; 6 import 'package:path/path.dart';
7 import 'main.dart' as performance; 7 import 'main.dart' as performance;
8 8
9 // Local driver for performance measurement 9 // Local driver for performance measurement
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 join(gitDir.path, outDirName), 56 join(gitDir.path, outDirName),
57 join(tmpSrcDirPath, outDirName) 57 join(tmpSrcDirPath, outDirName)
58 ]); 58 ]);
59 if (result.exitCode != 0) throw 'failed to link out or xcodebuild: $result'; 59 if (result.exitCode != 0) throw 'failed to link out or xcodebuild: $result';
60 /* 60 /*
61 * Launch the performance analysis tool 61 * Launch the performance analysis tool
62 */ 62 */
63 performance.main([ 63 performance.main([
64 //'-vv', // very verbose 64 //'-vv', // very verbose
65 //'-d8081', // analysis server localhost diagnostic port 65 //'-d8081', // analysis server localhost diagnostic port
66 //'--newTaskModel',
66 '-i${inputFile.path}', 67 '-i${inputFile.path}',
67 '-t$tmpSrcDirPath', 68 '-t$tmpSrcDirPath',
68 '-m${gitDir.path},$tmpSrcDirPath', 69 '-m${gitDir.path},$tmpSrcDirPath',
69 ]); 70 ]);
70 } 71 }
71 72
72 /// Print help and exit 73 /// Print help and exit
73 void printHelp([String errMsg]) { 74 void printHelp([String errMsg]) {
74 if (errMsg != null) { 75 if (errMsg != null) {
75 print(''); 76 print('');
76 print('Error: $errMsg'); 77 print('Error: $errMsg');
77 print(''); 78 print('');
78 } 79 }
79 print('Arguments: <gitDir> <branch> <inputFile>'); 80 print('Arguments: <gitDir> <branch> <inputFile>');
80 print('gitDir = git repository containing the initial target source'); 81 print('gitDir = git repository containing the initial target source');
81 print('branch = the branch containing the initial target source'); 82 print('branch = the branch containing the initial target source');
82 print('inputFile = the instrumentation or log file'); 83 print('inputFile = the instrumentation or log file');
83 exit(1); 84 exit(1);
84 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698