In MacOS, how can I group the processes based on apps? I want to know the resources used on the basis of applications. I found a duplicate, but the answer there has issues and since its over a year old, I decided to post a new one, instead of posting there.

The solution in the previous post was, Activity Monitor>View>"All Processes, Hierarchically". But that has an issue:

Did I do something wrong or is this a bug? Is there any other way of knowing it?
These Google Chrome Helper processes are sub-processes of the Google Chrome app. You'll notice that the highlighted sub-process is indeed at the top of all the other sub-processes in the list - the proper hierarchy. You did nothing wrong, nor is there a bug.