When I try to deploy on my production environment I receive the following error message:
Apex CPU time limit exceeded and An unexpected error has occurred. Your development organization has been notified.
The last method in stack trace where the error happens is my custom method.
I presume that the error is due to the fact that some of the other methods is taking considerable amount of time to be executed.
How can I tell which method is throwing this error? Is there a method to track CPU usage?