mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
don't refresh system stats when only reporting process stats (#784)
This commit is contained in:
@ -301,11 +301,14 @@ fn try_report_iter_update(
|
||||
}
|
||||
|
||||
async fn report_fuzzer_sys_info(worker_id: usize, run_id: Uuid, fuzzer_pid: u32) -> Result<()> {
|
||||
loop {
|
||||
system::refresh()?;
|
||||
// Allow for sampling CPU usage.
|
||||
time::delay_for(PROC_INFO_COLLECTION_DELAY).await;
|
||||
|
||||
// Allow for sampling CPU usage.
|
||||
time::delay_for(PROC_INFO_COLLECTION_DELAY).await;
|
||||
loop {
|
||||
// process doesn't exist
|
||||
if !system::refresh_process(fuzzer_pid)? {
|
||||
break;
|
||||
}
|
||||
|
||||
if let Some(proc_info) = system::proc_info(fuzzer_pid)? {
|
||||
event!(process_stats;
|
||||
|
Reference in New Issue
Block a user