Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 839 int ms = timer.elapsedMilliseconds; | 839 int ms = timer.elapsedMilliseconds; |
| 840 writeln('--- $msg in $ms ms.'); | 840 writeln('--- $msg in $ms ms.'); |
| 841 } | 841 } |
| 842 } | 842 } |
| 843 | 843 |
| 844 /** | 844 /** |
| 845 * Write a new line into the log | 845 * Write a new line into the log |
| 846 */ | 846 */ |
| 847 void writeln(String msg) { | 847 void writeln(String msg) { |
| 848 String indent = '\t' * _level; | 848 String indent = '\t' * _level; |
| 849 sink.writeln('$indent$msg'); | 849 // sink.writeln('$indent$msg'); |
|
Brian Wilkerson
2016/10/31 20:17:23
I don't understand this change. Why are we not wri
scheglov
2016/10/31 20:42:38
I forgot to roll this change back.
| |
| 850 } | 850 } |
| 851 } | 851 } |
| 852 | 852 |
| 853 /** | 853 /** |
| 854 * The performance measurement section for operations that start and end | 854 * The performance measurement section for operations that start and end |
| 855 * at different place in code, so cannot be run using [PerformanceLog.run]. | 855 * at different place in code, so cannot be run using [PerformanceLog.run]. |
| 856 * | 856 * |
| 857 * The client must call [exit] for every [PerformanceLog.enter]. | 857 * The client must call [exit] for every [PerformanceLog.enter]. |
| 858 */ | 858 */ |
| 859 class PerformanceLogSection { | 859 class PerformanceLogSection { |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1218 } | 1218 } |
| 1219 } | 1219 } |
| 1220 for (UnlinkedExportPublic export in unit.publicNamespace.exports) { | 1220 for (UnlinkedExportPublic export in unit.publicNamespace.exports) { |
| 1221 referenced.exported.add(export.uri); | 1221 referenced.exported.add(export.uri); |
| 1222 } | 1222 } |
| 1223 return referenced; | 1223 return referenced; |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 _ReferencedUris._(); | 1226 _ReferencedUris._(); |
| 1227 } | 1227 } |
| OLD | NEW |