Is there any way to limit the instrumentation level to method and get method coverage

25 views
Skip to first unread message

Tool Ply

unread,
Mar 13, 2018, 10:38:09 PM3/13/18
to JaCoCo and EclEmma Users
   After instrumenting the target jar by jacoco, I found that the fine-grained instrumentation for line coverage slows down the program. So I want to limit the granularity of instrumentation to method level. 

  on the other hand, except the function, getMethodCounter(), in CoreTutotrial, is there any other way to get method coverage directly.

Evgeny Mandrikov

unread,
Mar 21, 2018, 2:03:49 PM3/21/18
to JaCoCo and EclEmma Users


On Wednesday, March 14, 2018 at 3:38:09 AM UTC+1, Tool Ply wrote:
   After instrumenting the target jar by jacoco, I found that the fine-grained instrumentation for line coverage slows down the program. So I want to limit the granularity of instrumentation to method level. 

There is no option "to limit the granularity of instrumentation to method level" as you can see in our documentation.
And similarly to the observer effect in physics any kind of instrumentation will be affecting original.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages