Skip to content

0x00 QuickStart_en_3_3_x

hui.zhao edited this page Mar 26, 2020 · 1 revision

Instruction of version below 3.4.0

Initialize And Install Modules

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

  1. (General usage)Install from XML type assets directory:GodEyeConfig.fromAssets("assets path")
  2. Install from XML type InputStream:GodEyeConfig.fromInputStream(InputStream)
  3. Default configuration:GodEyeConfig.defaultConfig()

XML Sample:install.config

[Optional] Uninstall Modules

Uninstall modules when you don't need it(not recommend):

GodEye.instance().uninstall();

Install Performance Visualization Dashboard

GodEyeMonitor class is entrance for this step.

Start performance visualization dashboard:

GodEyeMonitor.work(context)

[Optional] Stop it

GodEyeMonitor.shutDown()
Clone this wiki locally