✨ Feature Request
Group By and filter on Namespace should work on the Database tab, as they do on Analysis and Call Tree.
🧩 Problem This Solves
Under the Analysis tab or under the Call Tree tab, if we Group By Namespace then it shows up


But unfortunately, under the Database tab, the group by feature or filtering on Namespace doesn't work. It only shows default.


🧠 Proposed Solution
Blocked on Salesforce: the log gives ENTERING_MANAGED_PKG but no matching exit event, so after entering a package we cannot tell whether a later SOQL ran inside it or back in the caller. We default to default rather than guess. Full analysis, with nested packages and triggers, is in this comment.
Until the log output changes, the options are:
- Show a message to explain the behaviour.
- Show all the possible namespaces the SOQL could be in.
- Guess at the most likely and risk getting it wrong.
🔄 Alternatives
Leave the Database tab attributing everything to default, which is what happens today. Never wrong, but it hides real package activity.
📎 Additional context
Salesforce idea to add the missing exit event. Kept open as a feature so others hitting the same behaviour can find the explanation.
✨ Feature Request
Group By and filter on Namespace should work on the Database tab, as they do on Analysis and Call Tree.
🧩 Problem This Solves
Under the Analysis tab or under the Call Tree tab, if we Group By Namespace then it shows up


But unfortunately, under the Database tab, the group by feature or filtering on Namespace doesn't work. It only shows default.


🧠 Proposed Solution
Blocked on Salesforce: the log gives
ENTERING_MANAGED_PKGbut no matching exit event, so after entering a package we cannot tell whether a later SOQL ran inside it or back in the caller. We default todefaultrather than guess. Full analysis, with nested packages and triggers, is in this comment.Until the log output changes, the options are:
🔄 Alternatives
Leave the Database tab attributing everything to
default, which is what happens today. Never wrong, but it hides real package activity.📎 Additional context
Salesforce idea to add the missing exit event. Kept open as a feature so others hitting the same behaviour can find the explanation.
@biswajith-s-pso-maxval
I have done a full analysis to show the issue in various cases by creating managed packages that call to one another (lc01 -> lc02 -> lc03). A method in lc01 is called from unmanaged and each package has a trigger on Account.
Trigger in a managed pkg
This is within the
DML_BEGIN+DML_ENDbut we do not get aCODE_UNIT_STARTEDto separate the triggers across packages for the same object. So we can not tell where one pkg trigger starts and another endsnested calls from one pkg to another
No
pkg_exitso can not tell if control returned to the caller or we have nested calls.Sequential pkg calls from unmanaged
If we call methods directly from unmanaged e can see the
m…