Skip to content

Latest commit

 

History

History
 
 

booster-task-analyser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

booster-task-analyser

This module is used for static analysing.

Performance Analysis

Start performance analysis by executing the following command

./gradlew analysePerformanceDebug

or

./gradlew analysePerformanceRelease

or

./gradlew analysePerformance

Analyser Reports

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:

com.didiglobal.booster.demo.MainActivity

Properties

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

Reference Analysis

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/