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

Unified Diff: src/base/platform/platform.h

Issue 1118533003: Make CPU profiler do not hog 100% of CPU. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do not use Sleep on Windows Created 5 years, 8 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 | « no previous file | src/base/platform/platform-posix.cc » ('j') | src/cpu-profiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/platform.h
diff --git a/src/base/platform/platform.h b/src/base/platform/platform.h
index 2d837baff61078fedd74626491dc28db8d3bf930..2b21a39055d4684a3cad026bae361d5760fc1b69 100644
--- a/src/base/platform/platform.h
+++ b/src/base/platform/platform.h
@@ -190,8 +190,8 @@ class OS {
// Get the Alignment guaranteed by Allocate().
static size_t AllocateAlignment();
- // Sleep for a number of milliseconds.
- static void Sleep(const int milliseconds);
+ // Sleep for a specified time interval.
+ static void Sleep(TimeDelta interval);
// Abort the current process.
static void Abort();
« no previous file with comments | « no previous file | src/base/platform/platform-posix.cc » ('j') | src/cpu-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698