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

Unified Diff: src/log.h

Issue 8700008: New approach to Crankshaft decision-making (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 9 years 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 | « src/isolate.cc ('k') | src/log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.h
diff --git a/src/log.h b/src/log.h
index 677dada03a8fb9731f805d1532754c4914aa2a79..28e48a99753b58a660f93184298af247471e494a 100644
--- a/src/log.h
+++ b/src/log.h
@@ -154,6 +154,7 @@ class Logger {
void EnsureTickerStarted();
void EnsureTickerStopped();
+ void ResetTickerInterval();
Sampler* sampler();
@@ -295,13 +296,7 @@ class Logger {
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();
« no previous file with comments | « src/isolate.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698