fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU (e.g. I/O) time together. Go's builtin sampling CPU profiler can only show On-CPU time, but it's better than fgprof at that. Go also includes tracing profilers that can analyze I/O, but they can't be combined with the CPU profiler. fgprof is designed for analyzing applications with mixed I/O and CPU workloads. This kind of profiling is also known as wall-clock profiling. If this is the first time you hear about fgprof, you should start by reading about The Problem & How it Works. fgprof is compatible with the go tool pprof visualizer. Which tool you prefer is up to you, but one thing I like about Gregg's tool is that you can filter the plaintext files using grep which can be very useful when analyzing large programs.

Features

  • fgprof is compatible with the go tool pprof visualizer
  • fgprof is designed for analyzing applications with mixed I/O and CPU workloads
  • fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU
  • Go's builtin sampling CPU profiler can only show On-CPU time
  • fgprof is implemented as a background goroutine that wakes up 99 times per second
  • This data is used to maintain an in-memory stack counter which can be converted to the pprof or folded output format

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow fgprof

fgprof Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of fgprof!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Frameworks

Registered

2023-01-20