aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2016-05-17 04:09:20 -0300
committerMatias Linares <matiaslina@openmailbox.org>2016-05-17 04:09:20 -0300
commit02413b1aaccfbdd80094d05ce22f97882921663d (patch)
treed21f8aa7e56268552a150b5935b8f984f30c118f
parentf7e0cad06fbabec0ea1a83d8913b6c213dc62c68 (diff)
downloadprofile-02413b1aaccfbdd80094d05ce22f97882921663d.tar.gz
Add KB to the memory output
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index eea5392..1fa787b 100644
--- a/profile.c
+++ b/profile.c
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
printf("user CPU time used: %lus %luus\n", usage.ru_utime.tv_sec, usage.ru_utime.tv_usec);
printf("system CPU time used: %lus %luus\n", usage.ru_stime.tv_sec, usage.ru_stime.tv_usec);
- printf("residet set size used: %ld\n", usage.ru_maxrss);
+ printf("residet set size used: %ldKB\n", usage.ru_maxrss);
printf("page reclaims (soft page faults): %ld\n", usage.ru_minflt);
printf("page faults (hard page faults): %ld\n", usage.ru_majflt);
printf("block input operations: %ld\n", usage.ru_inblock);