English README.md 中文 README_zh.md
Auto add systrace Tag when project compiling
- Configure TRACEFIX_VERSION in gradle.properties.
TRACEFIX_VERSION=0.0.6
- Add matrix-gradle-plugin in your build.gradle(Root project or module, Make sure it looks like below):
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("io.github.gracker:TraceFix:${TRACEFIX_VERSION}"){ changing = true }
}
}
- 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
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