Instrumentation Java profiler
Fierix is an instrumentation Java profiler that can track only specified methods and save values of parameters.
- To specify methods that will be recorded open Tools | Edit Fierix Configuration... The configuration below tells profiler to record all methods from my.package.util and my.package.messages packages except methods that start with 'get' or 'set'.
- To run program with profiler select a run configuration and choose Run with profiler
-
Also you can configure profiler to save value of method's parameters or it's return value. This should be done if you want to see how parameters influence method's performance. To enable this option check 'Save' checkbox beside type of parameter(s) when editing pattern in configuration.
-
Methods of system classes are not recorded by default. You may include them if you specify full name of a system class in configuration. For example: java.io.FileOutputStream.()
-
To view results use FlameViewer
When your program finishes you will see following message:
Methods count: 42
If Method count: 0 it means that either configuration is incorrect or all methods took less than 1ms.
Import project in IntelliJ IDEA and execute gradle tasks copyAgent
and runIdea