Command line option for custom probe

Questions about YourKit Java Profiler
Post Reply
ovidiu
Posts: 2
Joined: Mon Sep 27, 2010 11:39 pm

Command line option for custom probe

Post by ovidiu »

I would like to be able to specify custom command line options for a custom probe implementation.

Assuming that a probe writes data into a file, I would like to be able to specify the path for that file when I configure the agent library on command line, as follows:

-agentpath:.../libyjpagent.jnilib=probeclasspath=...,my_file=/some/random/path/here.txt

Is this possible?

If yes, what is the API to access those custom options?

Thanks
ovidiu
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Command line option for custom probe

Post by Anton Katilin »

Hello ovidiu

You can't extend the set of startup options. Instead, please use Java's properties (-Dmy_file=/some/random/path/here.txt) or an environment variable.

Best regards,
Anton
Post Reply