Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Posting on behalf on Navid Mehregani
Posting on behalf on Navid Mehregani [message #94717] Mon, 02 April 2007 14:46 Go to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi Thomas,

I think in your case it will be easier to use Probekit to collect your
runtime data rather than using the JVMPI or JVMTI agents directly. Here are
some pointers that should get you started:

See the Probekit screencast here:
http://www.eclipse.org/tptp/platform/documents/probekit/view let/IntroToProbekit_viewlet_swf.html

Read the document called "Creating Custom Profilers with Probekit":
http://www.eclipse.org/tptp/platform/documents/probekit/prob ekit_4.3.html

Download the 'demo.zip' file for the EclipseCon 2007 long talk for Probekit.
The presentation is called "The Fine Art of Reverse Engineering". For this
demo, I actually used a probe to dynamically generate a call graph of the
methods that are invoked for a specific operation:
http://www.eclipse.org/tptp/home/documents/conferences/eclip seCon2007/index.html

Note that all of these links are available >from our main documentation
page: http://www.eclipse.org/tptp/home/documents/index.html

Good Luck,

Navid Mehregani
Problem Determination Tools
Re: Posting on behalf on Navid Mehregani / probekit launching silently [message #94734 is a reply to message #94717] Mon, 02 April 2007 14:54 Go to previous messageGo to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi Navid,

you are right :) I tried your example yesterday and it was very easy to
create the dynamic callgraph. One further question on this now:

Now i would like to launch the creation of the callgraph silently and _not_
via the lauchConfiguration dialog because the creation shall be done while
opening a dialog by pressing right mouseClick. Could you give me pointer
which classes to enhance to achive this?

I tried enhancing the AbstractJavaLaunchConfiguration and added the
arguments described in
http://help.eclipse.org/help32/topic/org.eclipse.hyades.prob ekit.doc.user/topics/t_pk_deploy_sa_win.htm?resultof=%22%70% 72%6f%62%65%22%20%22%73%74%61%6e%64%61%6c%6f%6e%65%22%20%22% 73%74%61%6e%64%61%6c%6f%6e%22%20.
But this not very elegant (i think). Probably there are some other
extensions where to plugin?

Cheers,

Thomas E.-E.




> Hi Thomas,
>
> I think in your case it will be easier to use Probekit to collect your
> runtime data rather than using the JVMPI or JVMTI agents directly. Here
> are some pointers that should get you started:
>
> See the Probekit screencast here:
> http://www.eclipse.org/tptp/platform/documents/probekit/view let/IntroToProbekit_viewlet_swf.html
>
> Read the document called "Creating Custom Profilers with Probekit":
> http://www.eclipse.org/tptp/platform/documents/probekit/prob ekit_4.3.html
>
> Download the 'demo.zip' file for the EclipseCon 2007 long talk for
> Probekit. The presentation is called "The Fine Art of Reverse
> Engineering". For this demo, I actually used a probe to dynamically
> generate a call graph of the methods that are invoked for a specific
> operation:
> http://www.eclipse.org/tptp/home/documents/conferences/eclip seCon2007/index.html
>
> Note that all of these links are available >from our main documentation
> page: http://www.eclipse.org/tptp/home/documents/index.html
>
> Good Luck,
>
> Navid Mehregani
> Problem Determination Tools
>
>
Re: Posting on behalf on Navid Mehregani / probekit launching silently [message #94849 is a reply to message #94734] Tue, 03 April 2007 20:05 Go to previous message
Eclipse UserFriend
Originally posted by: nmehrega.ca.ibm.com

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

Hi Thomas,

All the Probekit code is divided into three plugins:

- org.eclipse.hyades.probekit: Contains the back-end code
- org.eclipse.hyades.probekit.ui: Contains most of the UI code, including
the Probekit editor
- org.eclipse.tptp.platform.probekit.launch: Contains all the launch
configuration code. If your interested in changing the launch
configuration mechanism of Probekit, this is the plugin you want to look
into.

First off, let me note that I don't see any problems with using Probekit
in stand-alone mode as indicated in the help link you provided. This
would be the most convenient way for you to leverage Probekit in your
project, but if you want more control, read on...

As I said above, the org.eclipse.tptp.platform.probekit.launch plugin
contains all the launch configuration code. The classes in this plugin
implement and extend classes that are common to all TPTP launch
configurations. The main 'launch' method is located in
org.eclipse.tptp.platform.probekit.launch.internal.config.Pr obekitProfilingType.launch().
You might also want to look at the following method:
org.eclipse.tptp.platform.probekit.launch.launchpad.LaunchPa d.agentActive().
This method is invoked when the Probekit agent becomes active.

Regards,
Navid Mehregani

--=_alternative 006E65F2852572B2_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi Thomas,</font>
<br>
<br><font size=2 face="sans-serif">All the Probekit code is divided into
three plugins:</font>
<br>
<br><font size=2 face="sans-serif">- org.eclipse.hyades.probekit: Contains
the back-end code</font>
<br><font size=2 face="sans-serif">- org.eclipse.hyades.probekit.ui: Contains
most of the UI code, including the Probekit editor</font>
<br><font size=2 face="sans-serif">- org.eclipse.tptp.platform.probekit.launch:
Contains all the launch configuration code. &nbsp;If your interested in
changing the launch configuration mechanism of Probekit, this is the plugin
you want to look into.</font>
<br>
<br><font size=2 face="sans-serif">First off, let me note that I don't
see any problems with using Probekit in stand-alone mode as indicated in
the help link you provided. &nbsp;This would be the most convenient way
for you to leverage Probekit in your project, but if you want more control,
read on...</font>
<br>
<br><font size=2 face="sans-serif">As I said above, the org.eclipse.tptp.platform.probekit.launch
plugin contains all the launch configuration code. &nbsp;The classes in
this plugin implement and extend classes that are common to all TPTP launch
configurations. &nbsp;The main 'launch' method is located in </font><font size=2 face="Courier New"> org.eclipse.tptp.platform.probekit.launch.internal.config.Pr obekitProfilingType.launch().
&nbsp;</font><font size=2 face="sans-serif">You might also want to look
at the following method: </font><font size=2 face="Courier New"> org.eclipse.tptp.platform.probekit.launch.launchpad.LaunchPa d.agentActive().
&nbsp;</font><font size=2 face="sans-serif">This method is invoked when
the Probekit agent becomes active.</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
<br>
--=_alternative 006E65F2852572B2_=--
Previous Topic:Posting on behalf of Rakesh Sagar
Next Topic:Is seperate port required by each Agent?
Goto Forum:
  


Current Time: Tue Mar 19 05:22:48 GMT 2024

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

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

Back to the top