Call counting from command line option

Questions about YourKit Java Profiler
Post Reply
efahimi
Posts: 8
Joined: Fri Oct 09, 2015 12:28 am

Call counting from command line option

Post by efahimi »

Hi all,
I am trying to use the yjp-controller-api-redist.jar (2015_build_15072) for call counting, but do not see the option.
The options I see are below. Am I misreading or there is no support as of this build.
Thanks.

YourKit Java Profiler 2015 build 15072 command line tools

Usage: java -jar yjp-controller-api-redist.jar <host> <port> <command>

where <command> is one of:

print-current-status
capture-memory-snapshot
capture-hprof-snapshot
capture-performance-snapshot
start-cpu-sampling
start-cpu-tracing
stop-cpu-profiling
clear-cpu-data
start-alloc-recording-all
// record all objects
start-alloc-recording-adaptive [alloc-sampled]
// record all objects with size >= 4 KB, and only each 10th smaller object
stop-alloc-recording
clear-alloc-data
start-monitor-profiling
stop-monitor-profiling
clear-monitor-data
force-gc

Examples:
java -jar yjp-controller-api-redist.jar localhost 10001 capture-memory-snapshot
java -jar yjp-controller-api-redist.jar localhost 10001 start-cpu-sampling
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Call counting from command line option

Post by Anton Katilin »

Hi,

The command line tool you refer to is missing this command at the moment. We'll add it in the next build.

Please note that you can use the profiler API for this purpose, namely the method Controller.startCPUCallCounting():
https://www.yourkit.com/docs/java/help/api.jsp

Also you can use the startup option "call_counting":
https://www.yourkit.com/docs/java/help/ ... ptions.jsp

Best regards,
Anton
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Call counting from command line option

Post by Anton Katilin »

Update:
The command line tool you refer to is missing this command at the moment. We'll add it in the next build.
To access the fix right now, please download and use the following yjp-controller-api-redist.jar:

https://www.yourkit.com/download/tmp/20 ... redist.jar

The new command is "start-cpu-call-counting".
efahimi
Posts: 8
Joined: Fri Oct 09, 2015 12:28 am

Re: Call counting from command line option

Post by efahimi »

Thank you Anton! Great support.
Post Reply