-
Notifications
You must be signed in to change notification settings - Fork 344
0x03g SM_Block_en
hui.zhao edited this page Mar 27, 2020
·
1 revision
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.
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.