mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
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:
parent
4916ae6d67
commit
5eb4c3dc2f
Notes:
github-actions[bot]
2025-05-08 14:13:17 +00:00
Author: https://github.com/trflynn89
Commit: 5eb4c3dc2f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4656
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue