在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):CoXier/AppMethodTracking开源软件地址(OpenSource Url):https://github.com/CoXier/AppMethodTracking开源编程语言(OpenSource Language):Groovy 99.2%开源软件介绍(OpenSource Introduction):Method TrackingA plugin to display how methods are called in application. UsageStpe1Add these to your root buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.uniquestudio:method-tracking:1.0.6"
}
} Don't forget : apply plugin: "com.uniquestudio.method-tracking" Step2First find where you want to debug.In my demo I care about how to wear cloth,so I add two lines around Debug.startMethodTracing(getPackageName());
wearCloth();
Debug.stopMethodTracing();
public void wearCloth() {
putOnCoat();
putOnPants();
putOnShoes();
putOnHat();
}
private void putOnPants() {
}
private void putOnCoat() {
}
private void putOnHat() {
// Put on hat
}
public void putOnShoes() {
putOnSocks();
// Put on shoes
}
public void putOnSocks() {
// Put on socks
} Step3Now let's start configure this plugin.In your app module, add methodTracking{
traceName = 'com.hackerli.sample.trace'
filterList = ['com.hackerli.sample']
}
Step4./gradlew track After above steps,traceName.html is created. Its output like this: The digit is In html,I add click event that means you can toggle these elements that have children.For example if I click THANKSI am inspired by AppMethodOrder,espically how to compatible Windows os in groovy script or gradle script. LICENSE
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论