bank_leak_mac_os (#7209)
This commit is contained in:
@ -3949,7 +3949,7 @@ mod tests {
|
|||||||
let pid = std::process::id();
|
let pid = std::process::id();
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(target_os = "linux"))]
|
||||||
error!(
|
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 {
|
loop {
|
||||||
num_banks += 1;
|
num_banks += 1;
|
||||||
@ -3973,11 +3973,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(target_os = "linux"))]
|
||||||
{
|
{
|
||||||
error!(
|
error!("{} banks, sleeping for 5 sec", num_banks);
|
||||||
"{} banks, get mem usage for pid {} from ps or activity monitor, sleeping for 5 sec",
|
|
||||||
num_banks,
|
|
||||||
pid
|
|
||||||
);
|
|
||||||
std::thread::sleep(Duration::new(5, 0));
|
std::thread::sleep(Duration::new(5, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user