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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 11265024: Make methods in Stopwatch getters and rename to be more consistent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/compiler/implementation/tools/mini_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index c327d7dafd60863ed63f269907da3e76f64e6469..97fad390ba7e5d24a8db82a708960b1d2493c0e1 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -602,7 +602,7 @@ abstract class Compiler implements DiagnosticListener {
enqueuer.resolution.resolvedElements[work.element] = work.resolutionTree;
return work.resolutionTree;
}
- if (progress.elapsedInMs() > 500) {
+ if (progress.elapsedMilliseconds > 500) {
// TODO(ahe): Add structured diagnostics to the compiler API and
// use it to separate this from the --verbose option.
if (phase == PHASE_RESOLVING) {
@@ -626,7 +626,7 @@ abstract class Compiler implements DiagnosticListener {
void codegen(WorkItem work, Enqueuer world) {
if (!identical(world, enqueuer.codegen)) return null;
- if (progress.elapsedInMs() > 500) {
+ if (progress.elapsedMilliseconds > 500) {
// TODO(ahe): Add structured diagnostics to the compiler API and
// use it to separate this from the --verbose option.
log('Compiled ${codegenWorld.generatedCode.length} methods.');
@@ -784,7 +784,7 @@ class CompilerTask {
CompilerTask(this.compiler) : watch = new Stopwatch();
String get name => 'Unknown task';
- int get timing => watch.elapsedInMs();
+ int get timing => watch.elapsedMilliseconds;
measure(Function action) {
// TODO(kasperl): Do we have to worry about exceptions here?
« no previous file with comments | « no previous file | lib/compiler/implementation/tools/mini_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698