Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Call counting from command line option

Moderators: Vladimir Kondratyev, Anton Katilin

Call counting from command line option

Postby efahimi » Mon Jan 11, 2016 10:10 pm

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
efahimi
 
Posts: 8
Joined: Fri Oct 09, 2015 12:28 am

Re: Call counting from command line option

Postby Anton Katilin » Tue Jan 12, 2016 10:52 am

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: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Call counting from command line option

Postby Anton Katilin » Tue Jan 12, 2016 2:41 pm

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".
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Call counting from command line option

Postby efahimi » Tue Jan 12, 2016 4:28 pm

Thank you Anton! Great support.
efahimi
 
Posts: 8
Joined: Fri Oct 09, 2015 12:28 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 10 guests