I am trying to set up Eclipse so I can profile a Java program using the TPTP profiler. I have downloaded and unzipped all the .zip
files that I believe I need, but Eclipse still does not provide a "Profiling and Logging" perspective. What more must I do to get this perspective? Is there perhaps a configuration file I must edit?
- I'm using Red Hat RHEL5, and thus Eclipse 3.2.0, TPTP 4.2.0.2.
- The
Window > Open Perspective > Other...
dialog-box does not list the "Profiling and Logging" perspective. - The
Help > About Eclipse Platform > Plug-in Details
window lists numerous pacakges in theorg.eclipse.tptp
name-space, includingorg.eclipse.tptp.platform.lta
andorg.eclipse.tptp.trace
. Which plug-in is responsible for providing the perspective? - The
Window > Preferences...
dialog does not have an entry for "Profiling and Logging".
So, I tried again to use Help > Software Updates > Find and Install...
to have Eclipse download and install the plug-ins itself. This time with more success, but still no joy. Significantly it tries to update some parts of the Eclipse core. That installation failed because the /usr/shar/eclipse
files (installed by the eclipse RPM from Red Hat) are owned by root
rather than myself. It seems therefore that, despite what the release notes say, TPTP requires a fixed version of Eclipse 3.2. I guess the moral of this story is to forget about trying to use the Eclipse RPM, and instead down-load and install it in your home directory.
Regarding the installation, with the newer versions of Eclipse, TPTP
does not work. You need JVM Monitor.
- Installation:
Help > Eclipse Marketplace > JVM Monitor
- Activation:
Window > Perspective > Open Perspective > Other > Java Monitor
While this may be irrelevant because the OP's issue was apparently caused by a permissions issue, it may be helpful to those googling in the future.
来源:https://stackoverflow.com/questions/8229598/adding-profiling-and-logging-perspective-to-eclipse-on-redhat