-javaagent:C:/JaCoCo/lib/jacocoagent.jar=output=tcpserver
I have the following ant task:
<jacoco:dump reset="true" destfile="jacoco.exec"/>
I run the dump task and a jacoco.exec file is created and I can then generate a report.
If I run the dump task again, the jacoco.exec file doubles in size.
If I run the dump task a third time, the jacoco.exec file trebles in size.
I realize the jacoco.exec file is being appended to, but I'm not sure if there is a duplication of execution data.
If I change the reset to false, I get exactly the same behaviour with the file size.
<jacoco:dump reset="false" destfile="jacoco.exec"/>
Could someone confirm that the reset="true" clears all execution data after dumping and that this same execution data isn't returned on a subsequent dump?
If that's not the case, what does reset do?
How do I get the java agent to clear the execution data?
Thanks.
Just to make sure I understand, suppose there are execution data at the target JVM for the execution of MyClass.MyMethod. If I then do a dump with reset=true and retrieve these execution records and, assuming MyClass.MyMethod has not executed again, if I do another dump then there will be no execution data retrieved for MyClass.MyMethod.
Is that correct?
What I would like to achieve is to retrieve execution data periodically and append it to a file. In doing this, I don't want to retrieve execution data that I've already retrieved.
Thanks.
On Thursday, April 17, 2014 2:21:22 AM UTC+10, Marc R. Hoffmann wrote:
> Hi,
>
>
>