Skip to content

0x03g SM_Block_en

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

SM(Block)

Install

Use the following configuration to install

GodEye.instance().install(GodEyeConfig.defaultConfigBuilder().withSmConfig(new GodEyeConfig.SmConfig(true, 500, 500, 1000)).build());

or

<sm debugNotification="true"
    dumpIntervalMillis="1000"
    longBlockThresholdMillis="500"
    shortBlockThresholdMillis="500"/>

debugNotification indicates whether to display the notification on the mobile phone when a jam occurs. dumpIntervalMillis indicates the interval of the dump stack after a jam occurs. longBlockThresholdMillis indicates the threshold value of the long jam. shortBlockThresholdMillis indicates the threshold value of the short jam. The long jam will provides the stack of the jam and the short jam will not.

Production and consumption of data

Use the following methods to observe the output:

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

It will callback after a jam occurs.

DebugMonitor Dashboard

android_god_eye_block

Clone this wiki locally