|
|
Re: Method/Line code coverage JDK 6;JDK 5 in TPTP 4.6 [message #541318 is a reply to message #540478] |
Sat, 19 June 2010 23:51 |
Jonathan West Messages: 49 Registered: July 2009 |
Member |
|
|
Hi Aditya,
Code coverage support is "as-is" for TPTP. It is only available for JVMs that support the JVMPI JVM interface, which is Java 1.4.x, and Java 5. The JVMPI interface has been deprecated (by all JVM vendors) in Java 6 and up. TPTP has only implemented a JVMPI based code coverage agent, and thus TPTP code coverage is not available for Java 6 and up JVMs. This is also why you are seeing the experimental interface error; this is not from TPTP, this is from the JVM itself. TPTP has no plans to support code coverage for Java 6 and up (e.g. using the JVMTI interface).
As for why it the agent not show up in the workbench agent list when using Java 5, this is because when the workbench detects that Java 5 is installed, it defaults to the JVMTI interface. The TPTP JVMTI profiler is the preferred/support profiler for profiling Java 5 and up.
For Java 5, you can still use the command -Xrunpiagent param, as you noted above.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04607 seconds