Hi,
I work on UNIX SVR4. One of our admins came and asked if I could write something to time each call made by an existing C program. Basically, he wants to see what part of it is taking so long run. We looked into the 'truss' command and that is close, but doesn't quite get everything we need. We really need to get the time for each system call the program makes. The truss lists it and if you use -c will give you a pretty good idea, but he needs a bit more detail.
Is this possible - given that we can't actually add the code to the existing program - more, trace what it is doing and time it.
Thanks.
-Tyler
I work on UNIX SVR4. One of our admins came and asked if I could write something to time each call made by an existing C program. Basically, he wants to see what part of it is taking so long run. We looked into the 'truss' command and that is close, but doesn't quite get everything we need. We really need to get the time for each system call the program makes. The truss lists it and if you use -c will give you a pretty good idea, but he needs a bit more detail.
Is this possible - given that we can't actually add the code to the existing program - more, trace what it is doing and time it.
Thanks.
-Tyler