Reputation: 1109
I'm struggling to find how to trigger default probes with Jprofiler Java API. Do you have any examples on how-to do it ? The sample folder have only examples of new probe creation.
Thanks.
Upvotes: 1
Views: 204
Reputation: 48090
You have to call
connection.recordPayload(...)
See the Javadoc for that method in com.jprofiler.api.platform.connection.Connection
.
A general note on using ConnectionFactory: If you just do offline profiling and want to save snapshots for later analysis, use the Controller API and profile with the ",offline" parameter appended to the -agentpath command. The remote integration wizard will help to to set up offline profiling.
ConnectionFactory is only useful of you want to write a program that requires profiling data.
Upvotes: 1