Commit 5f41cb50 authored by jeremy@chromium.org's avatar jeremy@chromium.org

[Mac] Temporarily disable timer coalescing on Mac.

In the interest of conserving power, several incremental changes to timer slack have been committed over the last few weeks.  This CL disables those changes so we can get some numbers for the combined effect in terms of power usage and idle wakeup numbers.

This needs to be checked in because we can only get a good comparative measure for this when run on the bots in a controlled environment.

BUG=356804

Review URL: https://codereview.chromium.org/395763002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283311 0039d316-1c4b-4281-b951-d872f2087c98
parent 21a2013a
...@@ -72,6 +72,9 @@ bool g_not_using_cr_app = false; ...@@ -72,6 +72,9 @@ bool g_not_using_cr_app = false;
// Call through to CFRunLoopTimerSetTolerance(), which is only available on // Call through to CFRunLoopTimerSetTolerance(), which is only available on
// OS X 10.9. // OS X 10.9.
void SetTimerTolerance(CFRunLoopTimerRef timer, CFTimeInterval tolerance) { void SetTimerTolerance(CFRunLoopTimerRef timer, CFTimeInterval tolerance) {
// TODO(jeremy): Temporarily disabled in order to gauge net effect of timer
// coalescing.
#if 0
typedef void (*CFRunLoopTimerSetTolerancePtr)(CFRunLoopTimerRef timer, typedef void (*CFRunLoopTimerSetTolerancePtr)(CFRunLoopTimerRef timer,
CFTimeInterval tolerance); CFTimeInterval tolerance);
...@@ -94,6 +97,7 @@ void SetTimerTolerance(CFRunLoopTimerRef timer, CFTimeInterval tolerance) { ...@@ -94,6 +97,7 @@ void SetTimerTolerance(CFRunLoopTimerRef timer, CFTimeInterval tolerance) {
if (settimertolerance_function_ptr) if (settimertolerance_function_ptr)
settimertolerance_function_ptr(timer, tolerance); settimertolerance_function_ptr(timer, tolerance);
#endif
} }
} // namespace } // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment