Debuglog Printing Method Execution time

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.