mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
net: Measure memory usage of storage thread. (#37053)
Our persistent localstorage data can be meaningfully large after testing real world sites. This change ensures it shows up in about:memory. Testing: Opened about:memory after launching the browser with a persistent config Fixes: Part of #11559 Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
5b2305784a
commit
603ae44bcd
3 changed files with 46 additions and 5 deletions
|
@ -97,14 +97,15 @@ pub fn new_resource_threads(
|
|||
let (public_core, private_core) = new_core_resource_thread(
|
||||
devtools_sender,
|
||||
time_profiler_chan,
|
||||
mem_profiler_chan,
|
||||
mem_profiler_chan.clone(),
|
||||
embedder_proxy,
|
||||
config_dir.clone(),
|
||||
ca_certificates,
|
||||
ignore_certificate_errors,
|
||||
protocols,
|
||||
);
|
||||
let storage: IpcSender<StorageThreadMsg> = StorageThreadFactory::new(config_dir);
|
||||
let storage: IpcSender<StorageThreadMsg> =
|
||||
StorageThreadFactory::new(config_dir, mem_profiler_chan);
|
||||
(
|
||||
ResourceThreads::new(public_core, storage.clone()),
|
||||
ResourceThreads::new(private_core, storage),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue