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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2360143006: Stack sampling profiler: run the profiler in the GPU process on trunk builds (Closed)
Patch Set: . Created 4 years, 3 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
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 2d05c1bd01f019db1fba69e05af2893ca1ccff12..9c5fc66e8490a57e6dd88879c4d3c34ba3380fe8 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -106,6 +106,7 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/secure_origin_whitelist.h"
+#include "chrome/common/stack_sampling_configuration.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/browser_resources.h"
#include "chrome/grit/generated_resources.h"
@@ -1716,6 +1717,10 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
// is initialized correctly.
if (command_line->HasSwitch(switches::kEnableBenchmarking))
DCHECK(command_line->HasSwitch(switches::kEnableStatsTable));
+
+ StackSamplingConfiguration::Get()->AppendCommandLineSwitchForChildProcess(
+ process_type,
+ command_line);
}
std::string ChromeContentBrowserClient::GetApplicationLocale() {

Powered by Google App Engine
This is Rietveld 408576698