here is the go env ` GO111MODULE="on" GOARCH="amd64" GOBIN="" GOCACHE="/home/dongcheng/.cache/go-build" GOENV="/home/dongcheng/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPRIVATE="" GOPROXY="https://goproxy.cn,direct" GOROOT="/usr/local/go1.18" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go1.18/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.18.1" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3091739208=/tmp/go-build -gno-record-gcc-switches" `
attachment is the profile data On Wednesday, March 15, 2023 at 10:11:40 AM UTC+8 cheng dong wrote: > my code run some logic every second in a Tick function, sometimes i could > be very slow(like 5x time), i profile the process and found most of time is > doing runtime.asyncPreempt. however in "source view", these asyncPreempt > disappeared. > > [image: profile315.jpg] > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1e135467-0901-4c3c-99a0-fb7949e140f7n%40googlegroups.com.
preempt.out
Description: GNU Zip compressed data