Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory and time usage of program

Status
Not open for further replies.

rsshetty

Programmer
Joined
Dec 16, 2003
Messages
236
Location
US
Hi,

I want to determine the time taken by a program to execute and determine memory usage.
I experimented with the Unix timex command. However, I want to be able to capture program statistics in a file.
I have a script which makes the program run a certain number of times. However, I am not able to obtain a command to capture the memory usage and redirect it to a file each time it runs.
I would like an ideas maybe a trace within the program or maybe a command which gives me these statistics or some other method......




rsshetty.
It's always in the details.
 
Hi,
I guess that this could be achieved using 'top'.

Regards,
RaiD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top