View a markdown version of this page

Read a flame graph in Omni - Amazon CloudWatch

Read a flame graph in Omni

A flame graph aggregates every sample in the time range into one picture. Each bar is a function, its width is the share of the profile value it accounts for, and the bars above it are the functions it called. For what a profile measures, see Profiles overview.

A profile panel gives you the following.

Profile type

Choose a different profile type for the same service and time range. Which types a service has depends on its profiler. For the list, see Profile types.

The navigator

A minimap of the whole flame graph stays in view while you zoom into a branch, so you keep the context of what you are looking at.

Self time

The legend colors each frame by its share of self time, the time spent in the function itself rather than in the functions it called. The legend has four ranges: 10% or more, 3% to 10%, 0.5% to 3%, and less than 0.5%. A wide frame in the lowest range is a caller; follow it upward to the frames that it calls. A frame in the highest range is a hotspot.

Top functions

A table of the functions with the highest value, ranked. Use it to get the answer without reading the graph.

Function details

Choosing a frame shows the function's file and line, when the profiler recorded them. This is what connects a hotspot to the code to change.

Frame filter

Group and color frames to tell your own code apart from other code.

Note

A profile covers a window, not a moment. If a service was redeployed inside the time range, the graph mixes both versions. Narrow the range, or compare two ranges, instead of reading one graph that spans the change. To compare ranges with the API, see Compare two profiles.