| OLD | NEW |
| 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 library server.driver; | 5 library server.driver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:math' show max, sqrt; | 8 import 'dart:math' show max, sqrt; |
| 9 | 9 |
| 10 import 'package:logging/logging.dart'; | 10 import 'package:logging/logging.dart'; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 _printTotals( | 257 _printTotals( |
| 258 keyLen, totalCount, totalErrorCount, totalUnexpectedResultCount); | 258 keyLen, totalCount, totalErrorCount, totalUnexpectedResultCount); |
| 259 print(''); | 259 print(''); |
| 260 _printGroupHeader('Notifications', keyLen); | 260 _printGroupHeader('Notifications', keyLen); |
| 261 for (String tag in keys) { | 261 for (String tag in keys) { |
| 262 Measurement m = measurements[tag]; | 262 Measurement m = measurements[tag]; |
| 263 if (m.notification) { | 263 if (m.notification) { |
| 264 m.printSummary(keyLen); | 264 m.printSummary(keyLen); |
| 265 } | 265 } |
| 266 } | 266 } |
| 267 |
| 267 /// TODO(danrubel) *** print warnings if driver caches are not empty **** | 268 /// TODO(danrubel) *** print warnings if driver caches are not empty **** |
| 268 print(''' | 269 print(''' |
| 269 | 270 |
| 270 (1) uxr = UneXpected Results or responses received from the server | 271 (1) uxr = UneXpected Results or responses received from the server |
| 271 that do not match the recorded response for that request. | 272 that do not match the recorded response for that request. |
| 272 (2) all times in milliseconds'''); | 273 (2) all times in milliseconds'''); |
| 273 } | 274 } |
| 274 | 275 |
| 275 /** | 276 /** |
| 276 * Record the elapsed time for the given operation. | 277 * Record the elapsed time for the given operation. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 int totalUnexpectedResultCount) { | 311 int totalUnexpectedResultCount) { |
| 311 StringBuffer sb = new StringBuffer(); | 312 StringBuffer sb = new StringBuffer(); |
| 312 _printColumn(sb, 'Totals', keyLen); | 313 _printColumn(sb, 'Totals', keyLen); |
| 313 _printColumn(sb, totalCount.toString(), 6, rightJustified: true); | 314 _printColumn(sb, totalCount.toString(), 6, rightJustified: true); |
| 314 _printColumn(sb, totalErrorCount.toString(), 6, rightJustified: true); | 315 _printColumn(sb, totalErrorCount.toString(), 6, rightJustified: true); |
| 315 _printColumn(sb, totalUnexpectedResultCount.toString(), 6, | 316 _printColumn(sb, totalUnexpectedResultCount.toString(), 6, |
| 316 rightJustified: true); | 317 rightJustified: true); |
| 317 print(sb.toString()); | 318 print(sb.toString()); |
| 318 } | 319 } |
| 319 } | 320 } |
| OLD | NEW |