Skip to main content
i -> I
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

I have several programs that i'mI'm executing in a shell script:

./myprogram1
./myprogram2
...

I know that I can profile each individual program by editing the sourcecodesource code, but I wanted to know if there was a way I could measure the total time executed by profiling the script itself. Is there a timer program that I can use for this purpose? If so, how precise is its measurement?

I have several programs that i'm executing in a shell script:

./myprogram1
./myprogram2
...

I know that I can profile each individual program by editing the sourcecode, but I wanted to know if there was a way I could measure the total time executed by profiling the script itself. Is there a timer program that I can use for this purpose? If so, how precise is its measurement?

I have several programs that I'm executing in a shell script:

./myprogram1
./myprogram2
...

I know that I can profile each individual program by editing the source code, but I wanted to know if there was a way I could measure the total time executed by profiling the script itself. Is there a timer program that I can use for this purpose? If so, how precise is its measurement?

Source Link
Paul
  • 9.8k
  • 12
  • 34
  • 30

How can I profile a shell script?

I have several programs that i'm executing in a shell script:

./myprogram1
./myprogram2
...

I know that I can profile each individual program by editing the sourcecode, but I wanted to know if there was a way I could measure the total time executed by profiling the script itself. Is there a timer program that I can use for this purpose? If so, how precise is its measurement?