mirror of https://github.com/openXC7/prjxray.git
Add RAM usage to output.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
51100d0ced
commit
da244e36ac
|
|
@ -277,6 +277,10 @@ class PsTree:
|
||||||
return "{}\n{}".format(stdout, stderr)
|
return "{}\n{}".format(stdout, stderr)
|
||||||
|
|
||||||
|
|
||||||
|
def get_memory():
|
||||||
|
return subprocess.check_output('free -mh', shell=True).decode("utf-8")
|
||||||
|
|
||||||
|
|
||||||
def should_run_submake(make_flags):
|
def should_run_submake(make_flags):
|
||||||
"""Check if make_flags indicate that we should execute things.
|
"""Check if make_flags indicate that we should execute things.
|
||||||
|
|
||||||
|
|
@ -474,9 +478,10 @@ def run_fuzzer(fuzzer_name, fuzzer_dir, fuzzer_logdir, logger, will_retry):
|
||||||
if retcode is not None:
|
if retcode is not None:
|
||||||
break
|
break
|
||||||
log(
|
log(
|
||||||
"Still running (1m:{:0.2f}%, 5m:{:0.2f}%, 15m:{:0.2f}%).\n{}",
|
"Still running (1m:{:0.2f}%, 5m:{:0.2f}%, 15m:{:0.2f}%).\n{}\n{}",
|
||||||
*get_load(),
|
*get_load(),
|
||||||
PsTree.get(p.pid),
|
PsTree.get(p.pid),
|
||||||
|
get_memory(),
|
||||||
)
|
)
|
||||||
except (Exception, KeyboardInterrupt, SystemExit):
|
except (Exception, KeyboardInterrupt, SystemExit):
|
||||||
retcode = -1
|
retcode = -1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue