This commit is contained in:
zhongchao
2022-03-17 19:06:22 +08:00
parent 22c7920027
commit ee881c99e7
33 changed files with 330 additions and 403 deletions

View File

@@ -2,7 +2,9 @@ package com.mogo.eagle.core.function.api.devatools
import android.content.Context
import android.view.View
import com.mogo.eagle.core.data.chain.ChainLogParam
import com.mogo.eagle.core.data.deva.chain.ChainLogParam
import com.mogo.eagle.core.data.deva.scene.SceneModule
import com.mogo.eagle.core.data.deva.scene.SceneTAG
import com.mogo.eagle.core.function.api.base.IMoGoFunctionServerProvider
import record_cache.RecordPanelOuterClass
@@ -11,16 +13,54 @@ import record_cache.RecordPanelOuterClass
*/
interface IDevaToolsProvider : IMoGoFunctionServerProvider {
/**
* 开始抓取日志默认10min
*/
fun startLogCatch()
/**
* 开始抓取日志
* duration 抓取时间(分钟)
*/
fun startLogCatch(duration: Int)
/**
* 停止i抓取日志
*/
fun stopLogCatch()
/**
* 获取链路信息
*/
fun getTraceInfo(): HashMap<Int, ChainLogParam>
/**
* 更新链路信息
*/
fun refreshTraceInfo(map: HashMap<Int, ChainLogParam>)
/**
* 获取模块TAG
* 注:只返回核心模块,按需添加
*/
fun getModuleTAG(): MutableMap<String, SceneModule>
/**
* 更新模块TAG
*/
fun updateModuleTAG(moduleTag: MutableMap<String, SceneModule>)
/**
* 获取场景TAG
* 注:现阶段返回 网约车场景,包含 TAXI , BUS
*/
fun getSceneLogTAG(): MutableMap<String, SceneTAG>
/**
* 更新场景TAG
*/
fun updateSceneTAG(sceneTag: MutableMap<String, SceneTAG>)
/**
* 初始化BadCase入口
* @param view: 展示入口

View File

@@ -1,5 +1,7 @@
package com.mogo.eagle.core.function.api.devatools
import com.mogo.eagle.core.data.deva.scene.SceneModule
/**
* 开发套件工具接口
*/
@@ -8,7 +10,7 @@ interface IMoGoDevaToolsListener {
/**
* 日志抓取关闭回调(日志抓取忘记关闭,默认设置时长计时返回)
*/
fun onLogCatchClose(){
fun onLogCatchClose() {
}
@@ -16,5 +18,10 @@ interface IMoGoDevaToolsListener {
* 日志抓取按行返回 lineLog
* 注:莫要在此回调中打印日志,否则会造成日志循环记录
*/
fun onLogCatch(lineLog : String)
fun onLogCatch(lineLog: String)
/**
* 模块TAG更新回调
*/
fun moduleLogChanged(moduleTag: MutableMap<String, SceneModule>)
}