-
Couldn't load subscription status.
- Fork 347
0x00 QuickStart_en_3_3_x
hui.zhao edited this page Mar 26, 2020
·
1 revision
GodEye class is entrance for this step, almost all apis are provided by it.
Init first in your application:
GodEye.instance().init(this);Install modules in application onCreate, Repeated calls of this method will install modules that have not been installed.
if (ProcessUtils.isMainProcess(this)) {//install in main process
GodEye.instance().install(GodEyeConfig.fromAssets("assets path"));
}There are several ways to build GodEyeConfig
- (General usage)Install from XML type assets directory:
GodEyeConfig.fromAssets("assets path") - Install from XML type InputStream:
GodEyeConfig.fromInputStream(InputStream) - Default configuration:
GodEyeConfig.defaultConfig()
XML Sample:install.config
Uninstall modules when you don't need it(not recommend):
GodEye.instance().uninstall();GodEyeMonitor class is entrance for this step.
Start performance visualization dashboard:
GodEyeMonitor.work(context)GodEyeMonitor.shutDown()