Debuglog Printing Method Execution time
Print plug-in for easy debugging of performance issues. By adding @debuglog to the method, you can output the invocation parameters of the methods and the execution time.
Project gradle Configuration
// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath ‘com.android.tools.build:gradle:2.0.0‘ //用于方便调试性能问题的打印插件。给访法加上@DebugLog,就能输出该方法的调用参数,以及执行时间 classpath ‘com.jakewharton.hugo:hugo-plugin:1.2.1‘ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { jcenter() mavenCentral() }}
Application Module Gradle Configuration
apply plugin: ‘com.android.application‘//用于方便调试性能问题的打印插件。给访法加上@DebugLog,就能输出该方法的调用参数,以及执行时间apply plugin: ‘com.jakewharton.hugo‘repositories { flatDir { dirs ‘libs‘ } mavenCentral() jcenter()}
Debuglog Printing Method Execution time