Benchmarking a java agent

40 views
Skip to first unread message

George Campbell

unread,
Dec 6, 2013, 1:51:12 PM12/6/13
to cal...@googlegroups.com
I'm trying to see how much overhead a java agent is adding to the execution of an example program.  I see that there is @VmOptions annotation but it looks like it is applied to all experiments.  Any suggestions on how I can do this?

Gregory Kick

unread,
Dec 6, 2013, 1:56:02 PM12/6/13
to cal...@googlegroups.com
You can set options for a particular vm in your ~/.caliper/config.properties file and then select that vm with the --vm flag.  For example:
vm.jdk-special.home=/path/to/vm/home/dir
vm.jdk-special.args=-myspecialflag


On Fri, Dec 6, 2013 at 12:51 PM, George Campbell <aber...@gmail.com> wrote:
I'm trying to see how much overhead a java agent is adding to the execution of an example program.  I see that there is @VmOptions annotation but it looks like it is applied to all experiments.  Any suggestions on how I can do this?

--
--
guava-...@googlegroups.com
Project site: http://caliper.googlecode.com
This group: http://groups.google.com/group/caliper
 
This list is for general discussion.
To report an issue: http://code.google.com/p/caliper/issues/entry
To get help: http://stackoverflow.com/questions/ask (use the tag "caliper")
 
---
You received this message because you are subscribed to the Google Groups "caliper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caliper+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Greg Kick
Java Core Libraries Team

George Campbell

unread,
Dec 6, 2013, 7:22:09 PM12/6/13
to cal...@googlegroups.com
That would still be two runs of caliper.  Is there a way have it work like a parameter? Or merge the results of two different executions?

Gregory Kick

unread,
Dec 9, 2013, 1:12:21 PM12/9/13
to cal...@googlegroups.com
You can specify as many vms as you'd like in a given run.  --vm=with-agent,without-agent will work.
Reply all
Reply to author
Forward
0 new messages