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

Unified Diff: runtime/vm/profiler.cc

Issue 415513002: - Fix a lot of warnings generated by -Wshorten-64-to-32 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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/port_test.cc ('k') | runtime/vm/ring_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.cc
===================================================================
--- runtime/vm/profiler.cc (revision 38492)
+++ runtime/vm/profiler.cc (working copy)
@@ -173,22 +173,22 @@
start_ = FLAG_trace_profiled_isolates ? OS::GetCurrentTimeMillis() : 0;
}
- intptr_t GetElapsed() const {
- intptr_t end = OS::GetCurrentTimeMillis();
+ int64_t GetElapsed() const {
+ int64_t end = OS::GetCurrentTimeMillis();
ASSERT(end >= start_);
return end - start_;
}
~ScopeStopwatch() {
if (FLAG_trace_profiled_isolates) {
- intptr_t elapsed = GetElapsed();
- OS::Print("%s took %" Pd " millis.\n", name_, elapsed);
+ int64_t elapsed = GetElapsed();
+ OS::Print("%s took %" Pd64 " millis.\n", name_, elapsed);
}
}
private:
const char* name_;
- intptr_t start_;
+ int64_t start_;
};
« no previous file with comments | « runtime/vm/port_test.cc ('k') | runtime/vm/ring_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698