[java code coverage] Getting Coverage in Memory via API

2019-11-04 Thread Yevgeny P
Hey Team, Let's say I've started a Java program with Jacoco agent. Is it possible to retrieve the coverage from within the Java program itself via somekind of API or it should be an external program? I only saw an example doing something similar for a single class without Jacoco agent. Thanks,

Re: [java code coverage] Getting Coverage in Memory via API

2019-11-05 Thread Yevgeny P
hrough its runtime API: >> https://www.jacoco.org/jacoco/trunk/doc/api/org/jacoco/agent/rt/package-summary.html >> >> Regards, >> -marc >> >> >> >> >> On 4. Nov 2019, at 21:22, Yevgeny P wrote: >> >> Hey Team, >> >> Let's

Re: [java code coverage] Getting Coverage in Memory via API

2019-11-05 Thread Yevgeny P
> On 5. Nov 2019, at 11:41, Yevgeny P > > wrote: > > I think I got it, this goal is running before the test goal so it's > changes the JVM command-line. I have different problem now - I'm running > with MVN_OPTS="-javaagent:" this indeed generates the ex

Re: [java code coverage] Getting Coverage in Memory via API

2019-11-06 Thread Yevgeny P
Thank you, this works!! On Wednesday, November 6, 2019 at 7:15:27 PM UTC+2, Evgeny Mandrikov wrote: > > Hi, > > On Wednesday, November 6, 2019 at 8:26:43 AM UTC+1, Yevgeny P wrote: >> >> Hey Marc, Attached is a github repo with complete reproduction steps in >>

Re: [java code coverage] Getting Coverage in Memory via API

2019-11-06 Thread Yevgeny P
, 2019 at 7:33:11 PM UTC+2, Yevgeny P wrote: > > Thank you, this works!! > > On Wednesday, November 6, 2019 at 7:15:27 PM UTC+2, Evgeny Mandrikov wrote: >> >> Hi, >> >> On Wednesday, November 6, 2019 at 8:26:43 AM UTC+1, Yevgeny P wrote: >>> >>

Re: [java code coverage] Getting Coverage in Memory via API

2019-11-08 Thread Yevgeny P
-test> to the updated repo with the benchmarks. Much appreciated, Also Yevgeny:) On Friday, November 8, 2019 at 1:01:37 AM UTC+2, Evgeny Mandrikov wrote: > > > On Thursday, November 7, 2019 at 8:06:55 AM UTC+1, Yevgeny P wrote: >> >> the call to getExecutionData(0.5s) >>

Re: [java code coverage] Getting Coverage in Memory via API

2019-11-09 Thread Yevgeny P
the number of hits > (no overhead for serializing the data): > > https://github.com/jacoco/jacoco/tree/experimental-hit-count-api > > Can you please tell us, whether this improves your performance? > > Cheers, > -marc > > > On 8. Nov 2019, at 09:14, Yevgeny P > >