function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PathikritPathikrit 

Apex Trigger Execution Time by Event

Hello,

I am working on refactoring triggers in a certain org. For a given object CustomObject__c there are a few managed as well as unmanaged triggers. When it comes to trigger execution time, I could get the total time taken for a transaction from the debug log. The developer console Execution Overview gives a pretty good idea about which query/method etc. is more time consuming.

But, what I'm looking for is to understand how much time the trigger is taking per event. So, if there is an update on the CustomObject__c , I would like to know how much time is consumed by the Before Update trigger event and how much by the After Update trigger event.

Is there any way to get this? 

Thanks,
Pathikrit