From a91d541c58ad5e3b46309ee279bc569734a22564 Mon Sep 17 00:00:00 2001 From: "mnaganov@chromium.org" Date: Mon, 8 Jun 2009 16:44:00 +0000 Subject: 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 --- chrome/renderer/render_process.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/renderer') 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)) { -- cgit v1.1