1 Star 0 Fork 17

Kevinx/sharingan

forked from DiDi-opensource/sharingan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tag_with_replayer.go 608 Bytes
一键复制 编辑 原始数据 按行查看 历史
// +build replayer
package sharingan
import (
"log"
"github.com/didi/sharingan/replayer"
"github.com/didi/sharingan/replayer/fastmock"
)
// GetCurrentGoRoutineID get current goroutineID incase SetDelegatedFromGoRoutineID
func GetCurrentGoRoutineID() int64 {
return replayer.GetCurrentGoRoutineID()
}
// SetDelegatedFromGoRoutineID should be used when this goroutine is doing work for another goroutine
func SetDelegatedFromGoRoutineID(gID int64) {
replayer.SetDelegatedFromGoRoutineID(gID)
}
func init() {
fastmock.MockSyscall()
fastmock.MockTime()
log.Println("mode", "=====replayer=====")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/keivnx/sharingan.git
git@gitee.com:keivnx/sharingan.git
keivnx
sharingan
sharingan
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385