Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need a tool to profile a Linux application, but I can't seem to find any that have little overhead. (By overhead, I mean require a large download or disk space once installed.)

I looked at valgrind but it seems to require the debug version of libc6 - not a small download.

All I need the tool to do is track the amount of time it takes the application to execute. (Including only the time the application is executing instructions, not task switching, etc.)

share|improve this question

1 Answer 1

up vote 2 down vote accepted

So it seems the answer was very simple.

All I had to do was prefix the command with 'time'.

Example:

time ls

...

real    0m0.005s
user    0m0.000s
sys     0m0.000s
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.