•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,450 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,613 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 806 | Replies: 2
![]() |
•
•
Join Date: Oct 2007
Posts: 306
Reputation:
Rep Power: 2
Solved Threads: 29
Sorry if I misunderstand.
/usr/bin/time just returns the amount of time spent processing your request - generally the actual time and how much was spent processing user (software) and kernel (os).
With -al, it will show you that - this is probably what you're looking for, but I believe you need to be running something that takes a long time to run for it to ever register and it also rounds down and measures by the k.
There's a tool out there called "valgrind" that has a "massif" option that would probably show you what you want.
Check out "valgrind" in wikipedia. Hopefully that's what you're looking for
, Mike
/usr/bin/time just returns the amount of time spent processing your request - generally the actual time and how much was spent processing user (software) and kernel (os).
With -al, it will show you that - this is probably what you're looking for, but I believe you need to be running something that takes a long time to run for it to ever register and it also rounds down and measures by the k.
There's a tool out there called "valgrind" that has a "massif" option that would probably show you what you want.
Check out "valgrind" in wikipedia. Hopefully that's what you're looking for

, Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
•
•
Join Date: Oct 2007
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
I read in man that /usr/bin/time can also get maximum and average resident set size if you specify it in the output format, but it always return 0 instead. Hm, sorry for my stupid question, but there isn't any -al option and what is k? I cannot use valgrind because as i quick read it says that it isn't actually executing tested program.
Charles
Charles
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Photoshop 7 uninstall command? (Windows NT / 2000 / XP / 2003)
- compiling from command line (Java)
- How to use 'top' using Python (Python)
- virus infection help, please? (Viruses, Spyware and other Nasties)
- Auto timedate update (Computer Science and Software Design)
- No "Data & Time" Function (Windows 9x / Me)
- Urgent! Change using class (C++)
- fopen: No such file or directory (*nix Software)
- Round Robin algorithm? (Java)
- Do u use your root account on a regular basis? (*nix Software)
Other Threads in the Shell Scripting Forum
- Previous Thread: How to access parameters from another method in the same script
- Next Thread: creating a backup file


Linear Mode