---
title: "Flame graph AI | Grafana Cloud documentation"
description: "Use Flame graph AI to better understand your profile data and flame graphs."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Flame graph AI

Flame graph AI helps you understand your profiling data by using a large-language model (LLM) to assist with data interpretation.

A flame graph provides a convenient way to visualize performance data. These graphs provide a clear, intuitive understanding of resource allocation and bottlenecks within an application. To learn more, refer to [Flame graph visualizations](/docs/grafana-cloud/visualizations/panels-visualizations/visualizations/flame-graph/).

Flame graphs and profiling data in general can help you understand:

1. Performance bottlenecks: What’s causing the slowdown?
2. Root causes: Why is it happening?
3. Recommended fixes: How would you resolve it?

Flame graph AI answers these questions when explaining your flame graph. To learn more, refer to [AI-powered insights for continuous profiling: introducing Flame graph AI in Grafana Cloud](/blog/2024/05/15/ai-powered-insights-for-continuous-profiling-introducing-flame-graph-ai-in-grafana-cloud/).

## Explore your profile data with Flame graph AI

Flame graph AI uses the LLM plugin for Grafana to provide the large-language model using OpenAI API.

You can use Flame graph AI in Grafana **Explore** &gt; **Profiles** and the Grafana Profiles Drilldown app, nested underneath **Drilldown** &gt; **Profiles**.

### Before you begin

To use Flame graph AI, you must have:

- Configured a [Grafana Pyroscope data source](/docs/grafana-cloud/connect-externally-hosted/data-sources/pyroscope/) that has profiling data
- Enabled the [LLM plugin](/docs/grafana-cloud/alerting-and-irm/machine-learning/configure/llm-plugin/) for your Grafana instance
- Optional: Activated the [Grafana Profiles Drilldown](/docs/grafana-cloud/visualizations/simplified-exploration/profiles/access/) app for your Grafana instance

### Use Flame graph AI

You can use Flame graph AI when viewing flame graphs with the Pyroscope data source query editor or Profiles Drilldown.

For more information, refer to [Use Flame Graph AI](/docs/grafana/latest/explore/simplified-exploration/profiles/investigate/flame-graph-ai/).
