bank_leak_mac_os (#7209)

This commit is contained in:
Rob Walker 2019-12-03 00:09:05 -08:00 committed by GitHub
parent d38f3f664f
commit d5c8b26a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -3949,7 +3949,7 @@ mod tests {
let pid = std::process::id();
#[cfg(not(target_os = "linux"))]
error!(
"\nYou can run this to watch RAM:\n while read -p 'banks: '; do echo $(( $(ps -h -o %z --pid={})/$REPLY));done", pid
"\nYou can run this to watch RAM:\n while read -p 'banks: '; do echo $(( $(ps -o vsize= -p {})/$REPLY));done", pid
);
loop {
num_banks += 1;
@ -3973,11 +3973,7 @@ mod tests {
}
#[cfg(not(target_os = "linux"))]
{
error!(
"{} banks, get mem usage for pid {} from ps or activity monitor, sleeping for 5 sec",
num_banks,
pid
);
error!("{} banks, sleeping for 5 sec", num_banks);
std::thread::sleep(Duration::new(5, 0));
}
}