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

Unified Diff: sdk/lib/_internal/compiler/implementation/dump_info.dart

Issue 112813002: Use miliseconds instead of ticks to show the elapsed time in dump_info. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dump_info.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dump_info.dart b/sdk/lib/_internal/compiler/implementation/dump_info.dart
index ae3eece896b6830e2fae8c874d9cbfe752d5d339..727095f827dea52b8174b820909cb7cca5f7a9f9 100644
--- a/sdk/lib/_internal/compiler/implementation/dump_info.dart
+++ b/sdk/lib/_internal/compiler/implementation/dump_info.dart
@@ -193,8 +193,8 @@ class ProgramInfo {
/// The time the compilation took place.
final DateTime compilationMoment;
- /// The time the compilation took to complite.
- final int compilationDuration;
+ /// The time the compilation took to complete.
+ final Duration compilationDuration;
/// The version of dart2js used to compile the program.
final String dart2jsVersion;
@@ -436,7 +436,7 @@ class DumpInfoTask extends CompilerTask {
.where((info) => info != null));
return new ProgramInfo(
- compilationDuration: compiler.totalCompileTime.elapsedTicks,
+ compilationDuration: compiler.totalCompileTime.elapsed,
// TODO (sigurdm): Also count the size of deferred code
size: compiler.assembledCode.length,
libraries: libraryInfos,
@@ -468,7 +468,7 @@ class DumpInfoTask extends CompilerTask {
buffer.writeln(h2('Compilation took place: '
'${info.compilationMoment}'));
buffer.writeln(h2('Compilation took: '
- '${info.compilationDuration/1000000} seconds'));
+ '${info.compilationDuration.inSeconds} seconds'));
buffer.writeln(h2('Output size: ${info.size} bytes'));
if (info.dart2jsVersion != null) {
buffer.writeln(h2('Dart2js version: ${info.dart2jsVersion}'));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698