TraceFix
                                
                                 TraceFix copied to clipboard
                                
                                    TraceFix copied to clipboard
                            
                            
                            
                        TraceFix is a android systrace plugin , with asm and gradle
English README.md 中文 README_zh.md
TraceFix
Auto add systrace Tag when project compiling
Getting Started
- 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
TODO
- Add white list and black list
- Class name opt
- Init method opt
- Disable get、set
Module
android-systrace-sample-remote-debug
Demo module , just for remote test
android-systrace-sample-local-debug
Demo module , just for local test
android-systrace-sample-jetpack
Demo module , just for test
android-systrace-plugin
plugin module , add trace tag when entering a method and exiting a method
Code Change
Before auto add trace tag

After auto add trace tag

Systrace
Demo Project

