This module is used for static analysing.
Start performance analysis by executing the following command
./gradlew analysePerformanceDebug
or
./gradlew analysePerformanceRelease
or
./gradlew analysePerformance
The dot format reports is located at build/reports/${variant}/booster-task-analyser/
, you can convert the dot files to PNGs by using the following command:
find build/reports -name '*.dot' | xargs -t -I{} dot -O -Tpng {}
Here is an example generated by dot:
The following table shows the properties that analyser supports:
Property | Description | Example |
---|---|---|
booster.task.analyser.blacklist |
URI of API black list(Using built-in API list by default) | file:///Users/booster/blacklist.txt |
booster.task.analyser.whitelist |
URI of API white list(Using built-in API list by default) | file:///Users/booster/whitelist.txt |
The properties can be passthrough the command line as following:
./gradlew assembleDebug -Pbooster.task.analyser.whitelist=file:///Users/booster/whitelist.txt
or configured in the gradle.properties
:
booster.task.analyser.whitelist=file:///Users/booster/whitelist.txt
Start reference analysis by executing the following command
./gradlew analyseReferenceDebug
or
./gradlew analyseReferenceRelease
or
./gradlew analyseReference
The reports are located at build/reports/booster-task-analyser/reference/