Revision: 10103
Author: [email protected]
Date: Wed Nov 30 23:30:57 2011
Log: Increase tick interval for the android platform.
The phones and tablets currently in use are much slower that desktop
and laptop machines for which the current heuristics have been tuned.
Review URL: http://codereview.chromium.org/8757017
http://code.google.com/p/v8/source/detail?r=10103
Modified:
/branches/bleeding_edge/src/log.h
=======================================
--- /branches/bleeding_edge/src/log.h Mon Sep 19 11:36:47 2011
+++ /branches/bleeding_edge/src/log.h Wed Nov 30 23:30:57 2011
@@ -295,7 +295,13 @@
INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags,
Script*));
// Profiler's sampling interval (in milliseconds).
+#if defined(ANDROID)
+ // Phones and tablets have processors that are much slower than desktop
+ // and laptop computers for which current heuristics are tuned.
+ static const int kSamplingIntervalMs = 5;
+#else
static const int kSamplingIntervalMs = 1;
+#endif
// Callback from Log, stops profiling in case of insufficient resources.
void LogFailure();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev