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.
This commit is contained in:
Timothy Flynn 2025-05-08 08:08:34 -04:00 committed by Tim Flynn
commit 5eb4c3dc2f
Notes: github-actions[bot] 2025-05-08 14:13:17 +00:00

View file

@ -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;