Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Can a profile a separate program that invokes Java using JNI?
Can a profile a separate program that invokes Java using JNI? [message #73428] Tue, 06 June 2006 20:27 Go to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
I have an application written in C that I need to profile. Can TPTP do
this? Also can the profiler find JNI references that are being held?

Jim Adams
Re: Can a profile a separate program that invokes Java using JNI? [message #73444 is a reply to message #73428] Wed, 07 June 2006 14:45 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 0051174885257186_=
Content-Type: text/plain; charset="US-ASCII"

No, TPTP only provides a Java Profiler. You might want to check out the
Hitchhiker project, which is a C/C++ profiler based on TPTP:
http://www.ocsystems.com/eclipse/index.html

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


<br><font size=2 face="sans-serif">No, TPTP only provides a Java Profiler.
&nbsp;You might want to check out the Hitchhiker project, which is a C/C++
profiler based on TPTP: http://www.ocsystems.com/eclipse/index.html</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 0051174885257186_=--
Re: Can a profile a separate program that invokes Java using JNI? [message #73462 is a reply to message #73444] Wed, 07 June 2006 17:28 Go to previous messageGo to next message
Jim Adams is currently offline Jim AdamsFriend
Messages: 160
Registered: July 2009
Senior Member
Navid_Mehregani wrote:
>
> No, TPTP only provides a Java Profiler. You might want to check out the
> Hitchhiker project, which is a C/C++ profiler based on TPTP:
> http://www.ocsystems.com/eclipse/index.html
>
> Navid Mehregani

Except that I want to profile the Java portion of the app. The C app
starts the VM using JNI and uses the full span of JNI to communicate
with the java objects.
Re: Can a profile a separate program that invokes Java using JNI? [message #73480 is a reply to message #73462] Wed, 07 June 2006 17:56 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 00628D1885257186_=
Content-Type: text/plain; charset="US-ASCII"

hmm, theoretically you should be able to profile any Java application as
long as you pass it either the -XrunpiAgent:server=enabled or
-XrunpiAgent:server=controlled VM argument. This spins off a profiling
agent, which you can later attach to in the workbench. See
http://www.eclipse.org/tptp/home/downloads/installguide/Agen tController41.html
for more details.

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


<br><font size=2 face="sans-serif">hmm, theoretically you should be able
to profile any Java application as long as you pass it either the -XrunpiAgent:server=enabled
or -XrunpiAgent:server=controlled VM argument. &nbsp;This spins off a profiling
agent, which you can later attach to in the workbench. &nbsp;See http://www.eclipse.org/tptp/home/downloads/installguide/Agen tController41.html
for more details.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 00628D1885257186_=--
Re: Can a profile a separate program that invokes Java using JNI? [message #73531 is a reply to message #73480] Thu, 08 June 2006 13:02 Go to previous message
Joe Toomey is currently offline Joe ToomeyFriend
Messages: 79
Registered: July 2009
Member
This is a multipart message in MIME format.
--=_alternative 0047A66385257187_=
Content-Type: text/plain; charset="US-ASCII"

There isn't much discussion of using TPTP to profile a JVM that was
created by the JNI Invocation API, as opposed to laucnhed from the command
line, but as long as you pass the appropriate JVM arg (as Navid described)
when creating the JVM (in the array of JavaVMOption structs passed in the
JavaVMInitArgs), I expect this will work.

--Joe
--=_alternative 0047A66385257187_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">There isn't much discussion of using
TPTP to profile a JVM that was created by the JNI Invocation API, as opposed
to laucnhed from the command line, but as long as you pass the appropriate
JVM arg (as Navid described) when creating the JVM (in the array of JavaVMOption
structs passed in the JavaVMInitArgs), I expect this will work.</font>
<br>
<br><font size=2 face="sans-serif">--Joe</font>
--=_alternative 0047A66385257187_=--
Previous Topic:Buildiing custom test execution environment
Next Topic:Convert *.trcxml to *.xml...
Goto Forum:
  


Current Time: Wed Apr 24 23:59:04 GMT 2024

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

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

Back to the top