Describe how you could obtain a statistical profile of the amount of time spent by a program

Question:

Describe how you could obtain a statistical profile of the amount of time spent by a program executing different sections of its code. Discuss the importance of obtaining such a statistical profile.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: