Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy-to-use performance and memory .NET profiler for Windows, Linux and macOS.
Secure and easy profiling in cloud, containers and clustered environments.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Allocation flame graph

An Allocation flame graph is a way to visualize the entire application call tree, helping to identify performance bottlenecks quickly and easily. Execution paths where more memory is allocated appear wider and more prominent on the graph.

The flame graph is available in both live mode, when profiling a running application, and during the analysis of a captured snapshot. In live mode, the graph updates in real time as the UI synchronizes with the profiler agent.

Layout

Along the horizontal axis, the flame graph arranges stacks based on the amount of allocated memory. The methods that allocate the most memory always appear on the left side of the graph, simplifying analysis.

The width of each graph element is proportional to the number of bytes allocated in the corresponding stack frame. The wider the element, the more bytes have been allocated.

Call stacks are laid out vertically, and grow from bottom to top. That is similar to .NET stack trace you can see printed in a console.

Allocation flame graph

Colors

The colors of the graph have no meaning, they just visually separate neighbor elements and are chosen from a flame palette. Red color of an element does not mean that the corresponding method allocates more memory.

Zoom

Sometimes, you may want to closely inspect a method that didn't allocate much memory. Such methods are usually narrow, making it difficult for the graph to display their called methods. In this case, you can zoom in on the method. The entire graph will be scaled, and the zoomed element will expand to occupy the full screen width, revealing hidden details.

Zooming in can be activated by double-clicking or using the popup menu. Pressing ESC resets the zoom and restores the graph to its original scale.

Zoomed flame

Filters

Flame graph respects filter settings and collapse filtered methods the same way as it does Allocation call tree. Inside filtered elements you will see small button Unfold that allows to unfilter the element. You can always undo unfiltering by using the Ctrl+Z shortcut or from popup menu.

Actions

The following actions are available in the popup menu:

  • File | Export to... (Ctrl+S) - exports flame graph to PNG image.
  • Tools | Open in IDE (F7) - opens method declaration in IDE editor. See IDE integration.

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.