Kyson / AndroidGodEye

An app performance monitor(APM) , like "Android Studio profiler", you can easily monitor the performance of your app real time in browser
Apache License 2.0
2.6k stars 344 forks source link

Calling the steps in the application does nothing #14

Closed saantiaguilera closed 6 years ago

saantiaguilera commented 6 years ago

So, I have my application class extending Application like this:

class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        StartupTracer.get().onApplicationCreate();
        GodEye.instance().installAll(this, new CrashFileProvider(this));
        GodEyeMonitor.work(this);
    }
}

And looking in the web app shows nothing:

screen shot 2018-01-31 at 18 04 39

Maybe I should initialize things in other places? How should it be?

Also, seeing the stacktrace it shows. Without proguard it seems the issue does not appear. So I guess its heavily tied to it

                                 Caused by: java.lang.IllegalStateException: can not call install leak
                                                     at cn.hikyson.godeye.core.internal.modules.leakdetector.c.a(SourceFile:44)
                                                     at cn.hikyson.godeye.core.internal.modules.leakdetector.c.a(SourceFile:37)
                                                     at cn.hikyson.godeye.core.a.a(SourceFile:68)
                                                     at cn.hikyson.godeye.core.a.a(SourceFile:60)
                                                     at com.this.is.my.package.MainApplication.onCreate(SourceFile:XXX)
Kyson commented 6 years ago

sorry for this, upgrade version to 1.7.4. demo:https://github.com/Kyson/AndroidGodEyeDemo thank you.