When viewing a debug log where the logging level was set to:
I am seeing a large gap in time (~7 seconds) between my DML operation (followed by a heap allocate) and the entry into a manage package trigger. Does anyone know what is happening during these ~7 seconds? My understanding is that the managed package code is not running until the ENTERING_MANAGED_PKG statement, so does that mean that Salesforce is simply spending ~7 seconds waiting for the database?
Here is the log output from the operation in question:
12:07:22.840 (721566107)|DML_BEGIN||Op:Insert|Account|Rows:1 12:07:22.841 (721590807)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:12 12:07:29.159 (7064591521)|ENTERING_MANAGED_PKG|MyPkg