Well your original reply to my comment said "Code Profiling!" so you're not really sure ... have a look at this article
Tools and Techniques for Code Profiling[
^] which includes a link back to CodeProject amongst others.
The simple answer is "both" ... and during maintenance as well. As to "who" - I would advise getting a tool to do it for you ... there are some suggestions in the article