> ## 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.

# Export Flamegraph • AI Agents Framework

> export_flamegraph: API reference for ProfilerCompat.export_flamegraph

# export\_flamegraph

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

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

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def export_flamegraph(filepath: str) -> None
```

## Parameters

<ParamField query="filepath" type="str" required={true}>
  No description available.
</ParamField>

## Uses

* `export_flamegraph`
* `get_profiler`

## Used By

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

## Source

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