feat(servo): isolate profiles with hardware sidecars

This commit is contained in:
2026-07-09 20:27:22 -04:00
parent 78dc86b18e
commit c28ec2bee8
92 changed files with 10306 additions and 1485 deletions
@@ -0,0 +1,19 @@
use crate::services::servo_profile_data::TransientProfileDataDir;
use super::LiveRuntimeWorker;
pub(super) struct ScopedWorker {
pub(super) worker: LiveRuntimeWorker,
pub(super) transient_profile_data_dir: Option<TransientProfileDataDir>,
}
pub(super) fn shutdown_scoped_worker(scoped: ScopedWorker) -> Result<(), String> {
let ScopedWorker { worker, transient_profile_data_dir } = scoped;
drop(worker);
let Some(directory) = transient_profile_data_dir else {
return Ok(());
};
directory
.close()
.map_err(|error| format!("failed to remove transient Servo profile data: {error}"))
}