Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Ant Integration
Ant Integration [message #74133] Wed, 14 June 2006 14:23 Go to next message
Eclipse UserFriend
Originally posted by: gary.johnson.ericsson.com

Hi,

We have JUnits running through ANT. Does anyone have examples of how to
profile these through ANT?

thanks,

Gary
Re: Ant Integration [message #74152 is a reply to message #74133] Wed, 14 June 2006 14:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 005200EA8525718D_=
Content-Type: text/plain; charset="US-ASCII"

You can approach this in several different ways. One thing you can do is
to specify the -XrunpiAgent:server=controlled VM argument when running
your JUnits. This will spin off a profiling agent and halt the execution
of your JUnit until you attach to the profiling aget in the workbench.

Another thing you can do (which I would recommend) is to profile in
standalone mode and send the profiling data to a file. You can later
import this file to the workbench and analyze its results. The profiling
data that's sent to a file is in XML format so you can also create an XSLT
to convert this file to XHTML. This will eliminate the need for later
importing the file in the workbench. To profile your JUnit (or any Java
application) in standalone mode, you'll need to use the
-XrunpiAgent:server=standalone VM argument. For more information about
these VM arguments, please see the following document:
http://www.eclipse.org/tptp/home/downloads/installguide/Agen tController41.html

Navid Mehregani
--=_alternative 005200EA8525718D_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">You can approach this in several different
ways. &nbsp;One thing you can do is to specify the -XrunpiAgent:server=controlled
VM argument when running your JUnits. &nbsp;This will spin off a profiling
agent and halt the execution of your JUnit until you attach to the profiling
aget in the workbench.</font>
<br>
<br><font size=2 face="sans-serif">Another thing you can do (which I would
recommend) is to profile in standalone mode and send the profiling data
to a file. &nbsp;You can later import this file to the workbench and analyze
its results. &nbsp;The profiling data that's sent to a file is in XML format
so you can also create an XSLT to convert this file to XHTML. &nbsp;This
will eliminate the need for later importing the file in the workbench.
&nbsp;To profile your JUnit (or any Java application) in standalone mode,
you'll need to use the -XrunpiAgent:server=standalone VM argument. &nbsp;For
more information about these VM arguments, please see the following document:
http://www.eclipse.org/tptp/home/downloads/installguide/Agen tController41.html</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 005200EA8525718D_=--
Re: Ant Integration [message #74170 is a reply to message #74152] Wed, 14 June 2006 15:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gary.johnson.ericsson.com

Thanks Navid!!
Re: Ant Integration [message #74188 is a reply to message #74133] Wed, 14 June 2006 15:05 Go to previous message
Eclipse UserFriend
Originally posted by: nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0052DC8F8525718D_=
Content-Type: text/plain; charset="US-ASCII"

You might also want to check out dynamic probekit, which allows you to
dynamically instrument your application and collect any custom profiling
data you like. For more information about probekit see the following
document in the help content of TPTP: Monitoring and profiling
applications -> Collecting runtime data with user-defined probes.

To run dynamic probekit in standalone mode in your Ant scripts, see the
following document: Monitoring and profiling applications -> Collecting
runtime data with user-defined probes -> Working with probes -> Collecting
probe data: Special situations -> Using Probekit in stand-alone mode.

Navid Mehregani
--=_alternative 0052DC8F8525718D_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">You might also want to check out dynamic
probekit, which allows you to dynamically instrument your application and
collect any custom profiling data you like. &nbsp;For more information
about probekit see the following document in the help content of TPTP:
Monitoring and profiling applications -&gt; Collecting runtime data with
user-defined probes. </font>
<br>
<br><font size=2 face="sans-serif">To run dynamic probekit in standalone
mode in your Ant scripts, see the following document: Monitoring and profiling
applications -&gt; Collecting runtime data with user-defined probes -&gt;
Working with probes -&gt; Collecting probe data: Special situations -&gt;
Using Probekit in stand-alone mode. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 0052DC8F8525718D_=--
Previous Topic:TPTP 4.2 I3 stable build is available
Next Topic:What's the status of the AGR project
Goto Forum:
  


Current Time: Thu Mar 28 08:36:10 GMT 2024

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

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

Back to the top