| OLD | NEW |
| 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 analyzer.instrumentation.instrumentation; | 5 library analyzer.instrumentation.instrumentation; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:analyzer/task/model.dart'; | 10 import 'package:analyzer/task/model.dart'; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 */ | 78 */ |
| 79 InstrumentationServer _instrumentationServer; | 79 InstrumentationServer _instrumentationServer; |
| 80 | 80 |
| 81 /** | 81 /** |
| 82 * Counter used to generate unique ID's for [logSubprocessStart]. | 82 * Counter used to generate unique ID's for [logSubprocessStart]. |
| 83 */ | 83 */ |
| 84 int _subprocessCounter = 0; | 84 int _subprocessCounter = 0; |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Initialize a newly created instrumentation service to communicate with the | 87 * Initialize a newly created instrumentation service to communicate with the |
| 88 * given [instrumentationServer]. | 88 * given [_instrumentationServer]. |
| 89 */ | 89 */ |
| 90 InstrumentationService(this._instrumentationServer); | 90 InstrumentationService(this._instrumentationServer); |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * Return `true` if this [InstrumentationService] was initialized with a | 93 * Return `true` if this [InstrumentationService] was initialized with a |
| 94 * non-`null` server (and hence instrumentation is active). | 94 * non-`null` server (and hence instrumentation is active). |
| 95 */ | 95 */ |
| 96 bool get isActive => _instrumentationServer != null; | 96 bool get isActive => _instrumentationServer != null; |
| 97 | 97 |
| 98 /** | 98 /** |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 } | 369 } |
| 370 } | 370 } |
| 371 | 371 |
| 372 @override | 372 @override |
| 373 Future shutdown() async { | 373 Future shutdown() async { |
| 374 for (InstrumentationServer server in _servers) { | 374 for (InstrumentationServer server in _servers) { |
| 375 await server.shutdown(); | 375 await server.shutdown(); |
| 376 } | 376 } |
| 377 } | 377 } |
| 378 } | 378 } |
| OLD | NEW |