Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Profiling workaround
Profiling workaround [message #128555] Thu, 17 April 2008 16:32 Go to next message
Joerg Bullmann is currently offline Joerg Bullmann
Messages: 6
Registered: July 2009
Junior Member
Have not solved my problem of before, but have finally settled on a
workaround: I start my application and have the profiling data dumped to a
file. Then -- after the app has finished -- I manually import that
information and inspect it with TPTP's viewers.

Here's how I have set up my run config to gather the data:

Add this as a VM argument in the run configuration's "Arguments" tab:

-agentlib:JPIBootLoader=JPIAgent:server=standalone,file=C:\d ata\TPVF\prof.trcxml;HeapProf:allocsites=true

Add the following three definitions in the run configuration's
"Environment" tab:

JAVA_PROFILER_HOME = C:\Program Files\TPTP Agent
Controller\plugins\org.eclipse.tptp.javaprofiler

PATH = C:\Program Files\TPTP Agent
Controller\plugins\org.eclipse.tptp.javaprofiler;C:\Program Files\TPTP
Agent Controller

TPTP_AC_HOME = C:\Program Files\TPTP Agent Controller

When running this configuration, it will leave a heap profile log file in
C:\data\TPVF\prof.trcxml which can imported in Eclipse using
"Import>Profiling and Logging>Profiling file".

Background about the above info can be found in
plugins\org.eclipse.tptp.javaprofiler\readme.txt in the TPTP agent
controller installation.

Hope this helps. I still hope profiling will eventually start working
properly right from the IDE.

I'd appreciate feedback whether this workaround helps people and in which
way it can be improved.

Cheers,
Joerg
Re: Profiling workaround [message #128734 is a reply to message #128555] Mon, 21 April 2008 07:56 Go to previous message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Joerg,

Your workaround is officially known as "profiling in standalone mode"
and is described in details in the TPTP online help.

I am happy to learn that this is working for you.

Thanks,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:trouble profiling with TPTP
Next Topic:Many Targets in a file .probe
Goto Forum:
  


Current Time: Tue Oct 21 00:50:44 GMT 2014

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

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