|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| .github/ | | 23-Nov-2023 | - | 18 | 9 |
| .travis/ | | 23-Nov-2023 | - | 122 | 106 |
| jacoco/ | | 23-Nov-2023 | - | 265 | 235 |
| jacoco-maven-plugin/ | | 23-Nov-2023 | - | 2,414 | 1,302 |
| jacoco-maven-plugin.test/ | | 23-Nov-2023 | - | 3,881 | 2,376 |
| org.jacoco.agent/ | | 23-Nov-2023 | - | 395 | 270 |
| org.jacoco.agent.rt/ | | 23-Nov-2023 | - | 1,870 | 946 |
| org.jacoco.agent.rt.test/ | | 23-Nov-2023 | - | 2,530 | 1,823 |
| org.jacoco.agent.test/ | | 23-Nov-2023 | - | 212 | 162 |
| org.jacoco.ant/ | | 23-Nov-2023 | - | 1,906 | 1,060 |
| org.jacoco.ant.test/ | | 23-Nov-2023 | - | 2,126 | 1,501 |
| org.jacoco.build/ | | 23-Nov-2023 | - | 1,156 | 1,047 |
| org.jacoco.cli/ | | 23-Nov-2023 | - | 1,357 | 902 |
| org.jacoco.cli.test/ | | 23-Nov-2023 | - | 1,125 | 779 |
| org.jacoco.core/ | | 23-Nov-2023 | - | 14,766 | 7,303 |
| org.jacoco.core.test/ | | 23-Nov-2023 | - | 18,914 | 13,154 |
| org.jacoco.core.test.validation/ | | 23-Nov-2023 | - | 225 | 197 |
| org.jacoco.core.test.validation.groovy/ | | 23-Nov-2023 | - | 137 | 98 |
| org.jacoco.core.test.validation.java5/ | | 23-Nov-2023 | - | 2,954 | 1,717 |
| org.jacoco.core.test.validation.java7/ | | 23-Nov-2023 | - | 540 | 386 |
| org.jacoco.core.test.validation.java8/ | | 23-Nov-2023 | - | 666 | 343 |
| org.jacoco.core.test.validation.kotlin/ | | 23-Nov-2023 | - | 966 | 422 |
| org.jacoco.doc/ | | 23-Nov-2023 | - | 13,890 | 12,826 |
| org.jacoco.examples/ | | 23-Nov-2023 | - | 1,829 | 1,103 |
| org.jacoco.examples.test/ | | 23-Nov-2023 | - | 536 | 390 |
| org.jacoco.report/ | | 23-Nov-2023 | - | 8,937 | 4,821 |
| org.jacoco.report.test/ | | 23-Nov-2023 | - | 7,967 | 5,556 |
| org.jacoco.tests/ | | 23-Nov-2023 | - | 93 | 74 |
| .appveyor.yml | D | 23-Nov-2023 | 735 | 18 | 13 |
| .gitignore | D | 23-Nov-2023 | 129 | 8 | 7 |
| .travis.sh | D | 23-Nov-2023 | 2.7 KiB | 113 | 87 |
| .travis.yml | D | 23-Nov-2023 | 403 | 33 | 23 |
| Android.bp | D | 23-Nov-2023 | 5.1 KiB | 154 | 136 |
| FETCH_HEAD | D | 23-Nov-2023 | 0 | | |
| LICENSE.md | D | 23-Nov-2023 | 679 | 15 | 11 |
| METADATA | D | 23-Nov-2023 | 348 | 20 | 19 |
| MODULE_LICENSE_EPL | D | 23-Nov-2023 | 0 | | |
| NOTICE | D | 23-Nov-2023 | 681 | 15 | 11 |
| OWNERS | D | 23-Nov-2023 | 141 | 4 | 3 |
| README.android | D | 23-Nov-2023 | 1.4 KiB | 24 | 19 |
| README.md | D | 23-Nov-2023 | 1.1 KiB | 18 | 13 |
| config.mk | D | 23-Nov-2023 | 654 | 17 | 1 |
| pom.xml | D | 23-Nov-2023 | 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.
24