Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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'.


time ls


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

Your Answer


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.