How to debug performance issues?

I would check out this

which has a link to this