Java Profiler: how to display only methods that belong to a package

Answered

I am starting to use the profiler for the first time and am having a really hard time to make sense of the reports. The majority of methods that are reported as taking the most time are things that are totally out of my control. For example, very high level JUnit methods that sit on top of my code, or low level third party library methods that are invoked by my code.

I would like to have a way to filter the reports so that it only displays methods that are under my control, namely, methods whose package name start with 'org.iutools' (all classes in my project start with that prefix).

I saw a Filter setting under

   Settings > Build, Execution, Deployment > Java Profiler > Filters

But as far as I can tell, those are all negative filters, i.e. they EXCLUDE the specified classes. To achieve my goal, I would have to figure out the package names of all third party classes that call or are called by my code, which is not practical. 

Is there a way to create a positive filter which would say: "Only show stats from classes whose package starts with org.iutools".

2
4 comments

Thx Serge. I put a comment on the first of those issues and upvoted it. I find the profiler report close to useless without the ability to filter out methods and classes over which I have no control.

0

If I export the results of a CPU profiling task, can I then load that file in a third party tool that would allow me to better visualise it (in particular do this kind of filtering)?

0

If you find a tool with this feature, then why not?

0

Please sign in to leave a comment.