Ulf Dittmer wrote:It won't work like that. If your code had a section that was by itself CPU-intensive you would likely already know about it. It is much more likely to be caused by a coincidence of several factors, which you will have to tease out by reasoning and experimentation. I advise to let go of the hope that you can somehow avoid that.
Ulf Dittmer wrote:How, exactly, have you used those tools, and what have you found out so far? Tools are only part of the answer ; the other part is logical reasoning about the code and experimentation on your part.