|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| .azure-pipelines/ | | 03-May-2024 | - | 112 | 110 |
| .github/ | | 03-May-2024 | - | 84 | 55 |
| .travis/ | | 03-May-2024 | - | 18 | 15 |
| jacoco/ | | 03-May-2024 | - | 267 | 235 |
| jacoco-maven-plugin/ | | 03-May-2024 | - | 2,471 | 1,297 |
| jacoco-maven-plugin.test/ | | 03-May-2024 | - | 4,112 | 2,467 |
| org.jacoco.agent/ | | 03-May-2024 | - | 366 | 242 |
| org.jacoco.agent.rt/ | | 03-May-2024 | - | 1,869 | 919 |
| org.jacoco.agent.rt.test/ | | 03-May-2024 | - | 2,524 | 1,805 |
| org.jacoco.agent.test/ | | 03-May-2024 | - | 187 | 139 |
| org.jacoco.ant/ | | 03-May-2024 | - | 1,887 | 1,036 |
| org.jacoco.ant.test/ | | 03-May-2024 | - | 1,968 | 1,351 |
| org.jacoco.build/ | | 03-May-2024 | - | 1,541 | 1,382 |
| org.jacoco.cli/ | | 03-May-2024 | - | 1,368 | 899 |
| org.jacoco.cli.test/ | | 03-May-2024 | - | 1,115 | 760 |
| org.jacoco.core/ | | 03-May-2024 | - | 15,150 | 7,530 |
| org.jacoco.core.test/ | | 03-May-2024 | - | 20,403 | 14,172 |
| org.jacoco.core.test.validation/ | | 03-May-2024 | - | 370 | 324 |
| org.jacoco.core.test.validation.groovy/ | | 03-May-2024 | - | 744 | 475 |
| org.jacoco.core.test.validation.java14/ | | 03-May-2024 | - | 404 | 240 |
| org.jacoco.core.test.validation.java5/ | | 03-May-2024 | - | 3,169 | 1,842 |
| org.jacoco.core.test.validation.java7/ | | 03-May-2024 | - | 545 | 386 |
| org.jacoco.core.test.validation.java8/ | | 03-May-2024 | - | 680 | 343 |
| org.jacoco.core.test.validation.kotlin/ | | 03-May-2024 | - | 1,434 | 637 |
| org.jacoco.core.test.validation.scala/ | | 03-May-2024 | - | 292 | 148 |
| org.jacoco.doc/ | | 03-May-2024 | - | 13,906 | 12,862 |
| org.jacoco.examples/ | | 03-May-2024 | - | 1,827 | 1,081 |
| org.jacoco.examples.test/ | | 03-May-2024 | - | 535 | 386 |
| org.jacoco.report/ | | 03-May-2024 | - | 8,867 | 4,699 |
| org.jacoco.report.test/ | | 03-May-2024 | - | 7,966 | 5,515 |
| org.jacoco.tests/ | | 03-May-2024 | - | 94 | 74 |
| .appveyor.yml | D | 03-May-2024 | 735 | 18 | 13 |
| .gitattributes | D | 03-May-2024 | 152 | 9 | 8 |
| .gitignore | D | 03-May-2024 | 129 | 8 | 7 |
| Android.bp | D | 03-May-2024 | 6.3 KiB | 216 | 187 |
| FETCH_HEAD | D | 03-May-2024 | 0 | | |
| LICENSE.md | D | 03-May-2024 | 673 | 15 | 11 |
| METADATA | D | 03-May-2024 | 348 | 20 | 19 |
| MODULE_LICENSE_EPL | D | 03-May-2024 | 0 | | |
| NOTICE | D | 03-May-2024 | 681 | 15 | 11 |
| OWNERS | D | 03-May-2024 | 141 | 4 | 3 |
| README.android | D | 03-May-2024 | 1.6 KiB | 27 | 22 |
| README.md | D | 03-May-2024 | 1.2 KiB | 18 | 13 |
| config.mk | D | 03-May-2024 | 654 | 17 | 1 |
| pom.xml | D | 03-May-2024 | 439 | 14 | 10 |
README.android
1We build an equivalent of the jacoco-agent.jar which contains classes from org.jacoco.core,
2org.jacoco.agent and org.jacoco.agent.rt packages but also classes from asm 5.0.1.
3
4However, Jacoco depends on classes that do not exist in Android (java.lang.instrument.* or
5javax.management.*) for runtime instrumentation only. The ART compiler would reject those classes
6when they are either in the bootclasspath (core, frameworks, ...) or system apps.
7
8Since we only use offline instrumentation for code coverage (using Jack) and do not execute these
9classes at runtime, we simply not compile them here.
10
11We also need to modify the source code to cut dependencies to the classes that we exclude from the
12compilation. The changes are surrounded by "BEGIN android-change" and "END android-change". Here
13is the list of the changes:
14
151) Remove the creation of JmxRegistration in org.jacoco.agent.rt.internal.Agent.
162) Change default OutputMode to none in org.jacoco.core.runtime.AgentOptions
173) Change the runtime to reduce dependencies on core libraries.
18 Previously, Offline's static initializer would eagerly create an
19 Agent, a process which has lots of dependencies. With this change,
20 Offline only eagerly creates a Map<Long, ExecutionData>, which is much
21 more lightweight. The Agent is only created when it's actually
22 needed. This makes it possible to instrument a lot of more core
23 libraries without creating a circular dependency at runtime.
244) Disable use of 'constant dynamic' bytecode in
25 org.jacoco.core.internal.instr.ProbeArrayStrategyFactory, because R8/D8 doesn't support it.
26 (https://issuetracker.google.com/178172809)
27