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

Unified Diff: src/sampler.cc

Issue 1118533003: Make CPU profiler do not hog 100% of CPU. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: still uploading 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 | « src/runtime/runtime-test.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sampler.cc
diff --git a/src/sampler.cc b/src/sampler.cc
index 2c6cac669317f3f5c1cae58580f65527f9f54f91..5f6f2e25a7fb0168e553a7b97f9ceae5c892908c 100644
--- a/src/sampler.cc
+++ b/src/sampler.cc
@@ -558,7 +558,7 @@ class SamplerThread : public base::Thread {
sampler->DoSample();
}
}
- base::OS::Sleep(interval_);
+ base::OS::Sleep(base::TimeDelta::FromMilliseconds(interval_));
}
}
« no previous file with comments | « src/runtime/runtime-test.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698