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

# Record Flow • AI Agents Framework

> record_flow: Record a flow step.

# record\_flow

Method

> This is a method of the [**ProfilerCompat**](https://praison.ai/docs/sdk/reference/praisonai/classes/ProfilerCompat.md) class in the [**profiler**](https://praison.ai/docs/sdk/reference/praisonai/modules/profiler.md) module.

Record a flow step.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record_flow(name: str, duration_ms: float, file: str, line: int) -> None
```

## Parameters

**name** `str` *required*

No description available.

**duration\_ms** `float` *required*

No description available.

**file** `str` (default: '')

No description available.

**line** `int` (default: 0)

No description available.

## Uses

* `record_flow`
* `get_profiler`

## Used By

* [`ProfilerCompat.record_flow`](../functions/ProfilerCompat-record_flow)
* [`profile`](../functions/profile)
* [`profile_async`](../functions/profile_async)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L821)
>
> `praisonai/profiler.py` at line 821

***

## Related Documentation

> [card] [AgentFlow Concept](https://praison.ai/docs/docs/concepts/agentflow)

> [card] [Workflow Patterns](https://praison.ai/docs/docs/features/workflow-patterns)

> [card] [Routing](https://praison.ai/docs/docs/features/routing)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.