Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
When to use continuous profiling
Continuous profiling is a systematic method of collecting and analyzing performance data from production systems.
Traditionally, profiling is used as an ad-hoc debugging tool in languages like Go and Java. You are probably used to running a benchmark tool locally and getting a pprof file in Go or maybe connecting into a misbehaving prod instance and pulling a flamegraph from a JFR file in Java. This is great for debugging but not so great for production.
Note
To learn more about flamegraphs, refer to Flamegraphs: Visualizing performance data.
Continuous profiling is a modern approach which is safer and more scalable for production environments. It uses low-overhead sampling to collect profiles from production systems and stores the profiles in a database for later analysis. Using continuous profiling gives you a more holistic view of your application and how it behaves in production.
Benefits
Why prioritize continuous profiling?
- In-depth code insights: It provides granular, line-level insights into how application code utilizes resources, offering the most detailed view of application performance.
- Complements other observability tools: Continuous profiling fills critical gaps left by metrics, logs, and tracing, creating a more comprehensive observability strategy.
- Proactive performance optimization: Regular profiling enables teams to proactively identify and resolve performance bottlenecks, leading to more efficient and reliable applications.
Use cases
Adopting continuous profiling with tools like Pyroscope can lead to significant business advantages:
- Reduced operational costs: Optimization of resource usage can significantly cut down cloud and infrastructure expenses
- Reduced latency: Identifying and addressing performance bottlenecks leads to faster and more efficient applications
- Enhanced incident management: Faster problem identification and resolution, reducing Mean Time to Resolution (MTTR) and improving end-user experience
Reduce operational costs
Pyroscope’s low-overhead profiling enables precise optimization of resource usage, directly impacting various cost centers in technology infrastructure. By providing in-depth insights into application performance, Pyroscope allows teams to identify and eliminate inefficiencies, leading to significant savings in areas like observability, incident management, messaging/queuing, deployment tools, and infrastructure.
By using sampling profilers, Pyroscope is able to collect data with minimal overhead (~2-5% depending on a few factors). The custom storage engine compresses and stores the data efficiently. Some advantages of this are:
- Low CPU overhead thanks to sampling profiler technology
- Control over profiling data granularity (10s to multiple years)
- Efficient compression, low disk space requirements and cost
Reduced latency
Pyroscope plays a pivotal role in reducing application latency by identifying performance bottlenecks at the code level. This granular insight allows for targeted optimization, leading to faster application response times, improved user experience, and consequently, better business outcomes like increased customer satisfaction and revenue.
Enhanced incident management
Pyroscope streamlines incident management by offering immediate, actionable insights into application performance issues. With continuous profiling, teams can quickly pinpoint the root cause of an incident, reducing the mean time to resolution (MTTR) and enhancing overall system reliability and user satisfaction.