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

Unified Diff: runtime/vm/scope_timer.h

Issue 965593002: Improved profiler view and inclusive profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « runtime/vm/profiler_service.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scope_timer.h
diff --git a/runtime/vm/scope_timer.h b/runtime/vm/scope_timer.h
index 85119701a8e26a0e4c4b4fdadb56ac3cc2014dc2..c60e67ffec6de10d6dfa95c39fec3592cb9de26e 100644
--- a/runtime/vm/scope_timer.h
+++ b/runtime/vm/scope_timer.h
@@ -5,6 +5,8 @@
#ifndef VM_SCOPE_TIMER_H_
#define VM_SCOPE_TIMER_H_
+#include "platform/globals.h"
+
namespace dart {
// Simple utility class for timing a block of code.
@@ -31,7 +33,8 @@ class ScopeTimer : public ValueObject {
return;
}
int64_t elapsed = GetElapsed();
- OS::Print("%s took %" Pd64 " micros.\n", name_, elapsed);
+ double seconds = MicrosecondsToSeconds(elapsed);
+ OS::Print("%s: %f seconds (%" Pd64 " \u00B5s)\n", name_, seconds, elapsed);
}
private:
« no previous file with comments | « runtime/vm/profiler_service.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698