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

add new TimeCalculator for defaultConstructor #2836

Merged
merged 1 commit into from
Aug 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ public WXSDKInstance(){
mWXPerformance = new WXPerformance(mInstanceId);
mApmForInstance = new WXInstanceApm(mInstanceId);
WXSDKManager.getInstance().getAllInstanceMap().put(mInstanceId,this);
mTimeCalculator = new TimeCalculator(this);
}


Expand Down Expand Up @@ -586,7 +587,9 @@ public void init(Context context) {
// WXBridgeManager.getInstance().checkJsEngineMultiThread();
mDisableSkipFrameworkInit = isDisableSkipFrameworkInDataRender();

mTimeCalculator = new TimeCalculator(this);
if(mTimeCalculator == null) {
mTimeCalculator = new TimeCalculator(this);
}
}

/**
Expand Down