加回来了模拟周边车辆渲染的功能 200辆对地图进行压力测试

This commit is contained in:
董宏宇
2021-07-01 20:58:47 +08:00
parent 521522d73a
commit 39a53a1efb
4 changed files with 10 additions and 15 deletions

View File

@@ -212,7 +212,7 @@ ext {
crashreport : "com.mogo.test:crashreport:${CRASHREPORT_VERSION}", crashreport : "com.mogo.test:crashreport:${CRASHREPORT_VERSION}",
crashreportbugly : "com.mogo.test:crashreport-bugly:${CRASHREPORT_BUGLY_VERSION}", crashreportbugly : "com.mogo.test:crashreport-bugly:${CRASHREPORT_BUGLY_VERSION}",
crashreportnoop : "com.mogo.test:crashreport-noop:${CRASHREPORT_NOOP_VERSION}", crashreportnoop : "com.mogo.test:crashreport-noop:${CRASHREPORT_NOOP_VERSION}",
crashreportupgrade : "com.mogo.test:crashreport-noop:${CRASHREPORT_UPGRADE_VERSION}", crashreportupgrade : "com.mogo.test:crashreport-upgrade:${CRASHREPORT_UPGRADE_VERSION}",
skinsupportbase : "com.mogo.skin:skin-support-base:${SKIN_SUPPORT_VERSION}", skinsupportbase : "com.mogo.skin:skin-support-base:${SKIN_SUPPORT_VERSION}",

View File

@@ -54,7 +54,7 @@ class LocParse {
OutputStreamWriter locOsw = new OutputStreamWriter( new FileOutputStream( loc ) ); OutputStreamWriter locOsw = new OutputStreamWriter( new FileOutputStream( loc ) );
BufferedWriter locWr = new BufferedWriter( locOsw ); BufferedWriter locWr = new BufferedWriter( locOsw );
final int adasRecAmount = 10; final int adasRecAmount = 200;
final int intervalLineAmount = 50; final int intervalLineAmount = 50;
BufferedWriter writers[] = new BufferedWriter[adasRecAmount]; BufferedWriter writers[] = new BufferedWriter[adasRecAmount];

View File

@@ -543,7 +543,7 @@ public class MockIntentHandler implements IntentHandler {
.openVrMode(false); .openVrMode(false);
break; break;
case 46:// 模拟鹰眼模式下绘制车辆周边的数据 case 46:// 模拟鹰眼模式下绘制车辆周边的数据
// mTimeTickHandler.sendEmptyMessageDelayed(1, 0L); mTimeTickHandler.sendEmptyMessageDelayed(1, 0L);
break; break;
case 48:// 模拟3D模型绘制 case 48:// 模拟3D模型绘制
MogoMarkerOptions options = new MogoMarkerOptions() MogoMarkerOptions options = new MogoMarkerOptions()
@@ -902,8 +902,8 @@ public class MockIntentHandler implements IntentHandler {
final long start = System.currentTimeMillis(); final long start = System.currentTimeMillis();
if (readers == null) { if (readers == null) {
readers = new BufferedReader[10]; readers = new BufferedReader[200];
for (int i = 0; i < 10; i++) { for (int i = 0; i < 200; i++) {
readers[i] = new BufferedReader(new InputStreamReader(AbsMogoApplication.getApp().getAssets().open("adas" + i + ".txt"))); readers[i] = new BufferedReader(new InputStreamReader(AbsMogoApplication.getApp().getAssets().open("adas" + i + ".txt")));
} }
} }

View File

@@ -33,16 +33,11 @@ public class UpgradeReportProvider implements IProvider {
public void init(Context context) { public void init(Context context) {
Logger.d(TAG, "init"); Logger.d(TAG, "init");
String packageName = context.getPackageName(); String packageName = context.getPackageName();
String processName = getProcessName(android.os.Process.myPid()); String processName = getProcessName( android.os.Process.myPid() );
CrashReport.UserStrategy strategy = new CrashReport.UserStrategy( context );
//设置Bugly 用户策略UserStrategy strategy.setUploadProcess( processName == null || processName.equals( packageName ) );
CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(context); CrashReport.initCrashReport( context, "f3f8b0b2f1", true, strategy );
CrashReport.putUserData( context, "serial", MoGoAiCloudClientConfig.getInstance().getSn() );
strategy.setUploadProcess(processName == null || processName.equals(packageName));
CrashReport.putUserData(context, "serial", MoGoAiCloudClientConfig.getInstance().getSn());
Bugly.init(context, "f3f8b0b2f1", true, strategy);
String mapSDKVersion = AppUtils.getCustomMapSDKVersion(context); String mapSDKVersion = AppUtils.getCustomMapSDKVersion(context);
CrashReport.putUserData( context, "MAP_SDK_VERSION",mapSDKVersion ); CrashReport.putUserData( context, "MAP_SDK_VERSION",mapSDKVersion );
} }