Detecting what is causing slowness of website

Permalink
I have a C5 site that is very slow. Slowness started during development. First I thought it was some issue with my local machine or Apache installation but after uploading the website to the webserver the site still was very slow. The network tab of Chrome developer tools shows me that after the request for the webpage has beent sent it takes about 10 seconds before there is a response. On my local machine this sometimes was about 1 minute. Therefor I think I can assume that the slowness is being caused by the sourcecode or database queries and not by site assets or wrong server configuration. Also does the slowness occur on all pages, so I guess it's not caused by a specific block or page type.

Now I would like to know if someone can give me a little push in the right direction about how to track down this slowsness issue. I've done some searching about speed logging or debugging of C5 but haven't found anything concrete.

Thank you!