Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Using Probes and TPTP in Eclipse
Using Probes and TPTP in Eclipse [message #137421] Thu, 23 October 2008 15:29 Go to next message
Philipp Boenisch is currently offline Philipp BoenischFriend
Messages: 1
Registered: July 2009
Junior Member
Hello,

I work with eclipse and want to use TPTP and the Merve-Plugin. On the web
I found a document which describes how to do it (using VM argument
-XrunpiAgent:server=enabled and the agent) and it works fine. The problem
is, that there are many calls I am not interested in and the performance
is very bad. To reduce the number of calls that are logged I wrote a Probe
(or is there any other way for it?). After that I have problems tu run my
project. I did everything how it is described in "Using Probekit in
stand-alone mode on Linux" (using VM argument
-XrunpiAgent:server=standalone,mode=none,extensionLibrary=Pr obeAgentExtension.so,ext-pk-BCILibraryName=BCIEngProbe.so,ex t-pk-probescript=/home/pboenisc/eclipse/Workspace/probe.prob escript).
With this argument I can not profile any more (no agents are available in
profile configuration->attach to agent in eclipse). If I use the flag
"server=enabled" as before an agent is listed but when I open the
edit-options-dialog for probe insertion no probes are listed. But the
probe works fine (if I run my project I get printouts on the command line).
The question is, how can I use probes for profiling and Merve (something
like Tomcat application in eclipse) or is there any other possibility to
profile only some "special" method-calls and not all?

Thanks a lot,

Philipp
Re: Using Probes and TPTP in Eclipse [message #137467 is a reply to message #137421] Fri, 24 October 2008 14:00 Go to previous message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Philipp,

Thanks for using TPTP!
Since TPTP does not support Merve launch configuration, there is no profile
configuration for such launcher. However, You can try edit the Run
configuration of Merve launcher with the JVM argument and run it in Run
mode. It should start the Merve server as normal with the Probe inserted,
you will have to put filters in your probe to ensure only the target files
are inserted with probe code tho.
Here is the documentation on different TPTP profiler modes: (as in
http://dev.eclipse.org/viewcvs/index.cgi/platform/org.eclips e.tptp.platform.agentcontroller/src-native-new/packaging_md/ windows/getting_started.html?root=TPTP_Project&view=co#J ava_14,
apply the concept to probe BCI)
standalone
The Java Profiler is manually attached to a JVM instance and generates a
stand-alone trace to a specified file based on the options and filters given
on the command line. When this option is selected, the Java Profiler
produces the enclosing traceRoot element to form a complete and valid XML
document.
enabled (this is the default if not specify)
The Java Profiler is loaded, allows the application to run normally, but
produces no trace until a Eclipse workbench attaches to the agent to give it
instructions. When this option is selected, the Java Profiler only produces
XML fragments instead of a complete XML document.

HTH
Eugene

"Philipp Boenisch" <p.boenisch@gmx.de> wrote in message
news:efc38183f4384bc9135ae4921c79b27c$1@www.eclipse.org...
> Hello,
>
> I work with eclipse and want to use TPTP and the Merve-Plugin. On the web
> I found a document which describes how to do it (using VM
> argument -XrunpiAgent:server=enabled and the agent) and it works fine. The
> problem is, that there are many calls I am not interested in and the
> performance is very bad. To reduce the number of calls that are logged I
> wrote a Probe (or is there any other way for it?). After that I have
> problems tu run my project. I did everything how it is described in "Using
> Probekit in stand-alone mode on Linux" (using VM
> argument -XrunpiAgent:server=standalone,mode=none,extensionLibrary=Pr obeAgentExtension.so,ext-pk-BCILibraryName=BCIEngProbe.so,ex t-pk-probescript=/home/pboenisc/eclipse/Workspace/probe.prob escript).
> With this argument I can not profile any more (no agents are available in
> profile configuration->attach to agent in eclipse). If I use the flag
> "server=enabled" as before an agent is listed but when I open the
> edit-options-dialog for probe insertion no probes are listed. But the
> probe works fine (if I run my project I get printouts on the command
> line).
> The question is, how can I use probes for profiling and Merve (something
> like Tomcat application in eclipse) or is there any other possibility to
> profile only some "special" method-calls and not all?
>
> Thanks a lot,
>
> Philipp
>
Previous Topic:How to record tests on eclipse plugin and replay in tptp 4.4.1?
Next Topic:EclipseCon 2009: Call for Participation
Goto Forum:
  


Current Time: Thu Dec 18 00:46:12 GMT 2014

Powered by FUDForum. Page generated in 0.01692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software