fgprof icon indicating copy to clipboard operation
fgprof copied to clipboard

overhead negligible goroutine sampling

Open zdyj3170101136 opened this issue 7 months ago • 9 comments

The main cost of goroutine performance analysis comes from stop the world. And each goroutine needs to traverse the stack through an expensive unwinder function.

We can optimize it by using fp traceback.

The main cost of goroutine performance analysis comes from stop the world. And each goroutine needs to traverse the stack through an expensive unwinder function.

We can optimize it by using fp traceback. Even if we traverse thousands of goroutines, the cost is negligible, so the only overhead is to stop the world and restart the world.

see https://github.com/golang/go/issues/66915

zdyj3170101136 avatar Jun 27 '24 09:06 zdyj3170101136