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

Unified Diff: Source/platform/Timer.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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 | « Source/platform/Timer.h ('k') | Source/platform/TraceLocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/Timer.cpp
diff --git a/Source/platform/Timer.cpp b/Source/platform/Timer.cpp
index 1eb41a3c8ecc8e342f90f036e48e5c4a07878a7e..c6b58b9d376d0c356453515f1b98e95e3b0a9a16 100644
--- a/Source/platform/Timer.cpp
+++ b/Source/platform/Timer.cpp
@@ -203,10 +203,11 @@ TimerBase::~TimerBase()
ASSERT(!inHeap());
}
-void TimerBase::start(double nextFireInterval, double repeatInterval)
+void TimerBase::start(double nextFireInterval, double repeatInterval, const TraceLocation& caller)
{
ASSERT(m_thread == currentThread());
+ m_location = caller;
m_repeatInterval = repeatInterval;
setNextFireTime(monotonicallyIncreasingTime() + nextFireInterval);
}
« no previous file with comments | « Source/platform/Timer.h ('k') | Source/platform/TraceLocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698