flashbots / builder

Flashbots MEV-Boost Block Builder [deprecated, replaced by https://github.com/flashbots/rbuilder]
https://docs.flashbots.net/flashbots-mev-boost/block-builders
GNU Lesser General Public License v3.0
424 stars 137 forks source link

feat: add godeltaprof #149

Closed 0x416e746f6e closed 7 months ago

0x416e746f6e commented 7 months ago

📝 Summary

In Golang, allocation, mutex and block profiles are cumulative. They only grow over time and show allocations that happened since the beginning of the running program.

In many cases, it's more useful to see the differences between two points in time.

This PR introduces godeltaprof that allows collecting the delta-profiles for memory, mutex, and block.

📚 References

https://pkg.go.dev/github.com/grafana/pyroscope-go/godeltaprof#section-readme