Offline profiling can now be configured directly in the -agentpath VM parameter,
without a JProfiler config file. Previously, offline mode required you to export a session configuration from the JProfiler UI first.
You can specify the most common profiling settings inline: the call tree collection mode with callTreeMode and the
profiled, compact and ignored package filters with profile, compact and ignore. On top of that,
you can add a complete automated recording sequence that saves a snapshot without any API calls or jpcontroller, using
the snapshot, recording, duration and delay options.
For example, the parameter
-agentpath:...=offline,callTreeMode=sampling,profile=com.mycorp.,\
snapshot=/tmp/snapshot.jps,recording=cpu:allocation,duration=10m
records CPU and allocation data for ten minutes and then saves a snapshot.





