-
Couldn't load subscription status.
- Fork 347
0x03c Startup_en
hui.zhao edited this page Dec 7, 2019
·
3 revisions
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
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.
