Skip to content

0x03c Startup_en

hui.zhao edited this page Dec 7, 2019 · 3 revisions

Startup

Install

Use the following configuration to install

GodEye.instance().install(GodEyeConfig.defaultConfigBuilder().withStartupConfig(new GodEyeConfig.StartupConfig()).build());

or

<startup />

Startup module need to install after AndroidGodEye Version 3.0

Production and consumption of data

You need to call GodEyeHelper.onAppStartEnd(startupInfo) after app startup end:

StartupInfo startupInfo = new StartupInfo(StartupInfo.StartUpType.COLD, homeEndTime - mApplicationStartTime)
GodEyeHelper.onAppStartEnd(startupInfo);

Use the following methods to observe the output:

try {
            GodEye.instance().observeModule(GodEye.ModuleName.STARTUP, new Consumer<StartupInfo>() {
                @Override
                public void accept(StartupInfo startupInfo) throws Exception {
                }
            });
        } catch (UninstallException e) {
            e.printStackTrace();
        }

Callback after the end of startup, startupinfo records the start-up time, whether it is hot or cold startup, etc.

DebugMonitor Dashboard

android_god_eye_dashboard2

Clone this wiki locally