felixge / felixge/fgprof

overhead negligible goroutine sampling

Open
#31 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.1k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.