From 670bfe4311cbbad1126054a220cc6f3a6d0fe58a Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 5 Dec 2021 20:56:09 +0100 Subject: [PATCH] memleak: Print error message if fewer than 2 arguments are supplied. --- memleak/memory-consumption-over-time.gp | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/memleak/memory-consumption-over-time.gp b/memleak/memory-consumption-over-time.gp index c8df0f8..2643a22 100755 --- a/memleak/memory-consumption-over-time.gp +++ b/memleak/memory-consumption-over-time.gp @@ -3,21 +3,27 @@ # smem -P '^myprogram' -t | tail -n1 \ # | awk '{print "USS:", $4; print "PSS:",$5; print "RSS:",$6; print "SWP:",$3;}' \ # | sed "s/:/ $(date --iso-8601=minutes)/" >> mem-myprogram.data - +# +# Arguments: