Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
refactor(bench): improve utils.rs safety, error handling, and docs (#14057)
- Replace `unwrap` and `expect` with `anyhow::Result` for safer error handling - Add contextual error messages using `anyhow::Context` - Fix `home_path` on Windows by using `USERPROFILE` instead of `HOMEPATH` - Ensure process helpers (`run_collect`, `run`) return `Result` instead of panicking - Improve parsing logic in `parse_max_mem` and `parse_strace_output` - Add documentation comments for all public functions - Add best-effort cleanup and resilience against malformed input
K
Kushal Meghani committed
d54f3b95a63a5b24657e2b206f949d15f8013986
Parent: 1e7aac3
Committed by GitHub <noreply@github.com>
on 8/22/2025, 11:04:57 AM