English README.md 中文 README_zh.md
Auto add systrace Tag when project compiling
- Configure TRACEFIX_VERSION in gradle.properties.
TRACEFIX_VERSION=0.0.5
- Add matrix-gradle-plugin in your build.gradle(Root project or module, Make sure it looks like below):
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath("com.androidperf:tracefix:${TRACEFIX_VERSION}"){ changing = true }
implementation 'androidx.appcompat:appcompat:1.2.0'
}
}
- Add AndroidX for Appcompat Api(This is needed for now )
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
}
- Add dependencies to your app/build.gradle.
apply plugin: 'auto-add-systrace'
- Build and install apk , run systrace tools, " -a your-package-name" is Needed!
python /path-to-your-systrace/systrace.py -a your-package-name
#for example
python /mnt/d/Android/platform-tools/systrace/systrace.py -a com.android.settings
- Open trace file on Chrome or https://ui.perfetto.dev/#!/viewer
- Add white list and black list
- Class name opt
- Init method opt
- Disable get、set
- No-AndroidX opt
Demo module , just for remote test
Demo module , just for local test
Demo module , just for test
plugin module , add trace tag when entering a method and exiting a method