summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 16:44:00 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 16:44:00 +0000
commita91d541c58ad5e3b46309ee279bc569734a22564 (patch)
treed0d92d7653c1bb03e620071ce11967691021bb6e /chrome/renderer
parentd2fec012063ade5737c7075758574137e4d18410 (diff)
downloadchromium_src-a91d541c58ad5e3b46309ee279bc569734a22564.zip
chromium_src-a91d541c58ad5e3b46309ee279bc569734a22564.tar.gz
chromium_src-a91d541c58ad5e3b46309ee279bc569734a22564.tar.bz2
Turn on DevTools Profiler.
Works on Windows and Linux. On Mac V8's sampling doesn't work with Chromium due to an unknown reason. BUG=none TEST=none Review URL: http://codereview.chromium.org/118384 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_process.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/render_process.cc b/chrome/renderer/render_process.cc
index 687f1aa..6cfb56d 100644
--- a/chrome/renderer/render_process.cc
+++ b/chrome/renderer/render_process.cc
@@ -100,7 +100,9 @@ void RenderProcess::Init() {
if (!command_line.HasSwitch(switches::kDisableOutOfProcessDevTools)) {
// Out of process dev tools rely upon auto break behavior.
- webkit_glue::SetJavaScriptFlags(L"--debugger-auto-break");
+ webkit_glue::SetJavaScriptFlags(L"--debugger-auto-break"
+ // Enable lazy in-memory profiling.
+ L" --prof --prof-lazy --logfile=*");
}
if (command_line.HasSwitch(switches::kEnableWatchdog)) {