javagroovyvisualvm

How can I change the default settings in Visual VM?


When trying to profile groovy code in Visual VM, I have to manually add the setting to filter out groovy.* and org.codehaus.* classes from profiling every time. Is there a place I can make this the default?


Solution

  • Try going to Tools > Options > Profiling and create the presets you want.

    Then you can connect to your application, go to "Sampler" or "Profile" tab, select "Settings" checkbox in the upper-right corner and then select "Preset" from a drop-down combobox in the bottom-right corner.