> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Flamegraph Data • AI Agents Framework

> get_flamegraph_data: Generate flamegraph-compatible data from flow records.

# get\_flamegraph\_data

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Profiler**](../classes/Profiler) class in the [**profiler**](../modules/profiler) module.

Generate flamegraph-compatible data from flow records.

Returns list of \{name, value, children} for flamegraph visualization.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_flamegraph_data() -> List[Dict[str, Any]]
```

### Returns

<ResponseField name="Returns" type="List[Dict[str, Any]]">
  The result of the operation.
</ResponseField>

## Used By

* [`Profiler.export_flamegraph`](../functions/Profiler-export_flamegraph)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L698">
  `praisonai/profiler.py` at line 698
</Card>
