From 5eb4c3dc2fbc93cdc766001b79f5ef0366a625ff Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 8 May 2025 08:08:34 -0400 Subject: [PATCH] LibWebView: Disable spare WebContent processes when profiling WebContent Each WebContent process will create a callgrind log file. Let's not log processes we are not interested in. --- Libraries/LibWebView/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LibWebView/Application.cpp b/Libraries/LibWebView/Application.cpp index 10d474dcaf0..fceb9c07ee3 100644 --- a/Libraries/LibWebView/Application.cpp +++ b/Libraries/LibWebView/Application.cpp @@ -252,6 +252,9 @@ void Application::launch_spare_web_content_process() // Disable spare processes when debugging WebContent. Otherwise, it breaks running `gdb attach -p $(pidof WebContent)`. if (browser_options().debug_helper_process == ProcessType::WebContent) return; + // Disable spare processes when profiling WebContent. This reduces callgrind logging we are not interested in. + if (browser_options().profile_helper_process == ProcessType::WebContent) + return; if (m_has_queued_task_to_launch_spare_web_content_process) return;