We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前我在尝试通过 fp backtrace 的方式回溯每个 goroutine 的调用栈,遇到一些问题。
在 time.sleep,g.sched.pc 可以表示 goroutine 当前的执行函数。
但是如果 goroutine 执行的是一个 for 循环的函数,g.sched.pc 就是 runtime.systemstack_switch。
如何才能获取到该 goroutine 正在执行的函数呢?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目前我在尝试通过 fp backtrace 的方式回溯每个 goroutine 的调用栈,遇到一些问题。
在 time.sleep,g.sched.pc 可以表示 goroutine 当前的执行函数。
但是如果 goroutine 执行的是一个 for 循环的函数,g.sched.pc 就是 runtime.systemstack_switch。
如何才能获取到该 goroutine 正在执行的函数呢?
The text was updated successfully, but these errors were encountered: