Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Coverage misses simple getters
Coverage misses simple getters [message #82429] Mon, 04 September 2006 11:37 Go to next message
Eclipse UserFriend
Originally posted by: cmarshall.jlc.net

I have been trying to analyze the coverage of some of my test cases and
the coverage statistics seem to consistently miss calls to simple getters
that only return a value. If I place a single executable statement in any
of these getters the calls are recorded. I suspect this is related to
something the java optimizer is doing but don't know. Is there a way
around this so the calls to the getters are recorded?

thanks,
Chris
Re: Coverage misses simple getters [message #82445 is a reply to message #82429] Mon, 04 September 2006 12:25 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf YaffeFriend
Messages: 333
Registered: July 2009
Senior Member
Chris,

It is not clear from your message whether you refer to the Method
Coverage feature or the line-level code coverage feature of TPTP.

Assuming you refer to Method Coverage (obtained by profiling with
"execution statistics" turned on), the information is probably lost due
to the getters being inlined by the VM (the default TPTP Java profiler
cannot track inlined methods). To overcome this, you may want to
download and use the new JVMTI Java Profiler which does not suffer from
this limitation. Please refer to the TPTP 4.2 download page for
download, installation and usage instructions.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Re: Coverage misses simple getters [message #82522 is a reply to message #82429] Tue, 05 September 2006 16:57 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
You may want to try the JVM argument -Djava.compiler=NONE to disable JIT.

Thanks,
Ali Mehregani

"Chris Marshall" <cmarshall@jlc.net> wrote in message
news:cdd5e9ad497a94ff882ff58360f69120$1@www.eclipse.org...
>I have been trying to analyze the coverage of some of my test cases and the
>coverage statistics seem to consistently miss calls to simple getters that
>only return a value. If I place a single executable statement in any of
>these getters the calls are recorded. I suspect this is related to
>something the java optimizer is doing but don't know. Is there a way
>around this so the calls to the getters are recorded?
>
> thanks,
> Chris
>
Re: Coverage misses simple getters [message #82813 is a reply to message #82445] Wed, 06 September 2006 21:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cmarshall.jlc.net

Your diagnosis of "in lined methods", I am guessing is exactly right. I
have tried to install JVMTI with Callisto but haven't gotten it to work.
When I go to the run -> profile -> monitor tab I do not have the entry for
"Java Profiling with Instrumentation". Any suggestions on what I should
check?

thanks,
Chris
Re: Coverage misses simple getters [message #82843 is a reply to message #82813] Wed, 06 September 2006 23:18 Go to previous message
Eclipse UserFriend
Originally posted by: cmarshall.jlc.net

I got it working. The UML diagrams are impressive.
Previous Topic:Thread Dump Analyzer
Next Topic:new AC sdk link errors on linux
Goto Forum:
  


Current Time: Sat Apr 27 02:48:31 GMT 2024

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

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

Back to the top