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

Side by Side Diff: pkg/analysis_server/lib/src/server/driver.dart

Issue 957263003: update comments for http diagnostic port (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCoreDebug.java ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library driver; 5 library driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:math'; 9 import 'dart:math';
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 */ 115 */
116 static const String INTERNAL_PRINT_TO_CONSOLE = "internal-print-to-console"; 116 static const String INTERNAL_PRINT_TO_CONSOLE = "internal-print-to-console";
117 117
118 /** 118 /**
119 * The name of the option used to specify if [print] should print to the 119 * The name of the option used to specify if [print] should print to the
120 * console instead of being intercepted. 120 * console instead of being intercepted.
121 */ 121 */
122 static const String INTERNAL_DELAY_FREQUENCY = 'internal-delay-frequency'; 122 static const String INTERNAL_DELAY_FREQUENCY = 'internal-delay-frequency';
123 123
124 /** 124 /**
125 * The name of the option used to specify the port to which the server will 125 * The option for specifying the http diagnostic port.
126 * connect. 126 * If specified, users can review server status and performance information
127 * by opening a web browser on http://localhost:<port>
127 */ 128 */
128 static const String PORT_OPTION = "port"; 129 static const String PORT_OPTION = "port";
129 130
130 /** 131 /**
131 * The path to the SDK. 132 * The path to the SDK.
132 * TODO(paulberry): get rid of this once the 'analysis.updateSdks' request is 133 * TODO(paulberry): get rid of this once the 'analysis.updateSdks' request is
133 * operational. 134 * operational.
134 */ 135 */
135 static const String SDK_OPTION = "sdk"; 136 static const String SDK_OPTION = "sdk";
136 137
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 parser.addOption( 358 parser.addOption(
358 INSTRUMENTATION_LOG_FILE, 359 INSTRUMENTATION_LOG_FILE,
359 help: "the path of the file to which instrumentation data will be writte n"); 360 help: "the path of the file to which instrumentation data will be writte n");
360 parser.addFlag( 361 parser.addFlag(
361 INTERNAL_PRINT_TO_CONSOLE, 362 INTERNAL_PRINT_TO_CONSOLE,
362 help: "enable sending `print` output to the console", 363 help: "enable sending `print` output to the console",
363 defaultsTo: false, 364 defaultsTo: false,
364 negatable: false); 365 negatable: false);
365 parser.addOption( 366 parser.addOption(
366 PORT_OPTION, 367 PORT_OPTION,
367 help: "[port] the port on which the server will listen"); 368 help: "the http diagnostic port on which the server provides"
369 " status and performance information");
368 parser.addOption(INTERNAL_DELAY_FREQUENCY); 370 parser.addOption(INTERNAL_DELAY_FREQUENCY);
369 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk"); 371 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk");
370 parser.addFlag( 372 parser.addFlag(
371 NO_ERROR_NOTIFICATION, 373 NO_ERROR_NOTIFICATION,
372 help: "disable sending all analysis error notifications to the server", 374 help: "disable sending all analysis error notifications to the server",
373 defaultsTo: false, 375 defaultsTo: false,
374 negatable: false); 376 negatable: false);
375 parser.addFlag( 377 parser.addFlag(
376 NO_INDEX, 378 NO_INDEX,
377 help: "disable indexing sources", 379 help: "disable indexing sources",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 uuidFile.parent.createSync(recursive: true); 428 uuidFile.parent.createSync(recursive: true);
427 uuidFile.writeAsStringSync(uuid); 429 uuidFile.writeAsStringSync(uuid);
428 } catch (exception, stackTrace) { 430 } catch (exception, stackTrace) {
429 service.logPriorityException(exception, stackTrace); 431 service.logPriorityException(exception, stackTrace);
430 // Slightly alter the uuid to indicate it was not persisted 432 // Slightly alter the uuid to indicate it was not persisted
431 uuid = 'temp-$uuid'; 433 uuid = 'temp-$uuid';
432 } 434 }
433 return uuid; 435 return uuid;
434 } 436 }
435 } 437 }
OLDNEW
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/DartCoreDebug.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698