Time & Memory of Programs


 
Thread Tools Search this Thread
Operating Systems Linux Time & Memory of Programs
# 1  
Old 12-20-2010
Time & Memory of Programs

Hi,

I have a program called "myProg" which calls two other programs "prog1" and "prog2" with system command in it.

When I type
Code:
./myProg

to the terminal, everything is cool. The only things that are missing:
1) I would like to measure the time elapsed when myProg runs (I do not want the change the code).
2) I also want to measure the maximum memory which is used by myProg during execution.



Thanks in advance,
-hkullana
# 2  
Old 12-20-2010
The first one is easy: time ./program The second I'm not sure of.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies

2. Shell Programming and Scripting

Shell script for %computational memory & % non computational memory

Dear, How to calculate %computational memory and %non computational memory from AIX server. What command used to find out %computational memory and % non computational memory except topas. Regards Nowshath (1 Reply)
Discussion started by: Nowshath
1 Replies

3. UNIX for Dummies Questions & Answers

how the operating system compiles c programs at the time of booting.

unix and linux does not makes executable files for all the programs. it compiles it and executes it whenever require. at the time of booting the system, how kernel compiles those c programs without "gcc". (1 Reply)
Discussion started by: anandgodse
1 Replies

4. AIX

AIX Memory & DISK IO

I am constantly getting request to run reports on our AIX server for system health (cpu, io, memory, etc) when users experience performance issues. We are using SolarWinds to monitor system health and it works great for cpu and disk space; however, I cant seem to get memory and io to work... (5 Replies)
Discussion started by: gmendiola
5 Replies

5. Programming

Shared Memory Between C Programs

I'm involved in a project with multiple teams which are developing C code for a Linux machine and we would like to have our program pass data to one of the other group's programs. The immediate idea is to have shared memory between the programs which would simply consist of variables whose size and... (2 Replies)
Discussion started by: cmcmanus3
2 Replies

6. Solaris

Regarding cpu & memory utilize

Dear all, i am not getting the exact things what i am expecting from these commands . just clarify this things , 1. cpu utilization (min)% 2.peak load cpu utilization (max) % 3.cpu utilization(avg) 4. peak disk busy % 5. peak kb read 6.peak kb write 7.free memory for... (3 Replies)
Discussion started by: masthan25
3 Replies

7. UNIX for Dummies Questions & Answers

Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ?

Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies

8. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

9. UNIX for Dummies Questions & Answers

CPU & Memory value for scripts...!

Hi All, I want to calculate CPU utlization and memory utilization on solaris box..! could some one help me out on this topic..! right now i am using TOP command for both the values..! i want this to automated..! script should some thing like CPU utilization = (100-ideal value)%... (2 Replies)
Discussion started by: bullz26
2 Replies

10. UNIX for Advanced & Expert Users

Memory resident programs

How can you make a program as Memory resident in AIX. If I make a program as a memory resident program whether all the parts of the program like code and data (stack) segements of the program will be loaded in to the Memory. For Ex: I have a C code which is creating array of 10000 long ints... (4 Replies)
Discussion started by: Pola Balaji
4 Replies
Login or Register to Ask a Question