Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Android] add log for reload and fm init count
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-chen committed Sep 27, 2019
1 parent 43fa33d commit b107915
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public class WXBridgeManager implements Callback, BactchExecutor {
static volatile WXBridgeManager mBridgeManager;
private static long LOW_MEM_VALUE = 120;
public volatile static int reInitCount = 1;
private volatile static int sInitFrameWorkCount = 0;
private static String crashUrl = null;
private static long lastCrashTime = 0;

Expand Down Expand Up @@ -908,6 +909,8 @@ public int callReportCrashReloadPage(String instanceId, String crashFile) {
commitJscCrashAlarmMonitor(IWXUserTrackAdapter.JS_BRIDGE, WXErrorCode.WX_ERR_RELOAD_PAGE, "reboot jsc Engine", instanceId, url,extInfo);
}

WXLogUtils.e("reInitCount:"+reInitCount);

if (reInitCount > CRASHREINIT) {
WXExceptionUtils.commitCriticalExceptionRT("jsEngine", WXErrorCode.WX_ERR_RELOAD_PAGE_EXCEED_LIMIT,
"callReportCrashReloadPage","reInitCount:"+reInitCount,extInfo);
Expand Down Expand Up @@ -2171,6 +2174,8 @@ private void initFramework(String framework) {

execRegisterFailTask();
WXEnvironment.JsFrameworkInit = true;
sInitFrameWorkCount++;
WXLogUtils.e("initFrameWorkCount :"+ sInitFrameWorkCount);
registerDomModule();
trackComponentAndModulesTime();
} else {
Expand Down

0 comments on commit b107915

Please sign in to comment.