DhMethodTime
统计安卓所有方法执行耗时 ,用于开发 测试时分析性能,分析ANR,Calculate android method time,
Install / Use
/learn @dikeboy/DhMethodTimeREADME
DhMethodTime
What's this
DhMethodTime 是一个再debug下统计所有安卓方法耗时的插件,引用方便,利用javassist在编译时完成统计代码注入,realase版本下不会执行注入, 方便开发时测试,分析方法耗时,性能
An android gradle plugin for calculating time of all Android methods
jcentery is closed and it move to local file
How to use
Gradle->buildsrc->upload->uploadArchive
mkdir in app/plugins. copy app/repo/.../dhmtime-1.0.0.jar to plugins/
repositories {
google()
jcenter()
flatDir name: 'localRepository', dir: './app/plugins'
}
base build.gradle:
classpath 'com.lin.dhmtime:dhmtime:1.0.0'
classpath 'org.javassist:javassist:3.28.0-GA'
App build.gradle
apply plugin: "dhmtime"
...
...
dhMCConfig {
minTime(0l) //>= second will log print
setLogFilter("testlin") //android log filter name
setLogEngine("android.util.Log.e") // default android.util.Log.i you can use your self class
}
Log print

参考
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
