add trace view

This commit is contained in:
zhongchao
2022-02-21 20:21:27 +08:00
parent 5bc5c25228
commit 82016c8b98
5 changed files with 69 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
package com.mogo.eagle.core.function.call.devatools
import com.alibaba.android.arouter.launcher.ARouter
import com.mogo.eagle.core.data.chain.ChainLogParam
import com.mogo.eagle.core.data.constants.MogoServicePaths.PATH_DEVA_TOOLS
import com.mogo.eagle.core.function.api.devatools.IDevaToolsProvider
@@ -23,4 +24,18 @@ object CallerDevaToolsManager {
fun stopCatchLog() {
devaToolsProviderApi.stopLogCatch()
}
/**
* 更新链路节点信息,是否写入
*/
fun refreshTraceInfo(map: HashMap<Int, ChainLogParam>) {
devaToolsProviderApi.refreshTraceInfo(map)
}
/**
* 获取链路节点信息
*/
fun getTraceInfo():HashMap<Int, ChainLogParam>{
return devaToolsProviderApi.getTraceInfo()
}
}