We have a very slow save happening in Salesforce. Most of the time it succeeds, but is probably just under the CPU limit. If I enable debugging, then the overhead associated with debugging causes it to hit the CPU limit every time. I opened a case with Salesforce and was told this is by design.
I've tried to work around this and collect logs anyways looking for slow triggers, loops, etc. The problem I run into is when I set my log levels to a sufficient level of detail (Debug), my logs get truncated and I can't see the entire picture. In Developer Console, it only shows me 3 seconds worth of Apex code, the rest gets truncated.
Does anyone have any advice on proper log levels to find the loops or slow running process? I've tried trial and error and deactivated all processes, workflow field updates, and custom triggers. I still hit the CPU limit due to a number of managed packages in the org. I can't see the code in those managed packages, but I suspect they are interacting with each other and causing triggers to fire multiple times.