Git Product home page Git Product logo

Comments (5)

miaowmiaow avatar miaowmiaow commented on August 25, 2024

请检查是否正确加载插件:
根目录下:build.gradle
app目录下:build.gradle
请检查是否正确配置打印方法:
timeMethod = [
[
'time' : 100L,
'owner': 'com/google',
]
]

from fragmject.

hanxiaofeng avatar hanxiaofeng commented on August 25, 2024

请检查是否正确加载插件: 根目录下:build.gradle app目录下:build.gradle 请检查是否正确配置打印方法: timeMethod = [ [ 'time' : 100L, 'owner': 'com/google', ] ]

直接在你项目里测试的,新建了个module,build.gradle代码如下:

`plugins {
id 'com.android.application'
id 'miaow'
}

android {
compileSdk 32

defaultConfig {
    applicationId "com.android.asmtest"
    minSdk 21
    targetSdk 32
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {

implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

}

miaow {
//方法耗时打印
timeMethod = [
[
'time' : 0L,
'owner': 'com/android/asmtest',
],
// [
// 'time' : 100L,
// 'owner': 'com/google',
// ]
]
}`

期望可以打印onCreate的耗时,logcat筛选System.out,但没任何打印输出

from fragmject.

hanxiaofeng avatar hanxiaofeng commented on August 25, 2024

我在onMethodExit打印了下,执行到了的,但是就是没输出

image

from fragmject.

miaowmiaow avatar miaowmiaow commented on August 25, 2024

通过上述的信息我没有办法帮你排查到具体问题,你可以参考README中的字节码文章。

from fragmject.

miaowmiaow avatar miaowmiaow commented on August 25, 2024

哈喽,已经对AGP 7.0做适配,请拉取最新代码查看

from fragmject.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.