Commit 258a93d4 authored by ricow@chromium.org's avatar ricow@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10103 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f5d9c1be
...@@ -295,7 +295,13 @@ class Logger { ...@@ -295,7 +295,13 @@ class Logger {
INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*));
// Profiler's sampling interval (in milliseconds). // 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; static const int kSamplingIntervalMs = 1;
#endif
// Callback from Log, stops profiling in case of insufficient resources. // Callback from Log, stops profiling in case of insufficient resources.
void LogFailure(); void LogFailure();
......
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