servo/components/config
Jonathan Schwender 68a27946bf
Add prefs to limit threadpool sizes (#34478)
* Add prefs to limit threadpool sizes

Add preferences to control the size of threadpools,
so that we can easily reduce the amount of runtime
threads and test which pools benefit from more
threads.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>

* Add pref for Webrender threadpool

Add a preference to limit the size of the webrender threadpool.
Note: WebRender by default calls hooks which register the threads with
a profiler instance that the embedder can register with webrender.
Servo currently doesn't register such a profiler with webrender,
but in the future we might also want to profile the
webrender threadpool.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2024-12-07 05:25:17 +00:00
..
tests Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
basedir.rs ohos: Remove unneeded dirs dependency in servo_config (#34166) 2024-11-06 15:58:46 +00:00
Cargo.toml ohos: Remove unneeded dirs dependency in servo_config (#34166) 2024-11-06 15:58:46 +00:00
lib.rs remove extern crate (#30311) 2023-09-08 12:11:31 +00:00
opts.rs servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
pref_util.rs Replace lazy_static crate with std::sync::LazyLock in layout and config (#33065) 2024-08-15 16:28:04 +00:00
prefs.rs Add prefs to limit threadpool sizes (#34478) 2024-12-07 05:25:17 +00:00