> ## 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 Streaming • AI Agents Framework

> record_streaming: Record a streaming operation.

# record\_streaming

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 streaming operation.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record_streaming(name: str, ttft_ms: float, total_ms: float, chunk_count: int, total_tokens: int) -> None
```

## Parameters

**name** `str` *required*

No description available.

**ttft\_ms** `float` *required*

No description available.

**total\_ms** `float` *required*

No description available.

**chunk\_count** `int` (default: 0)

No description available.

**total\_tokens** `int` (default: 0)

No description available.

## Uses

* `record_streaming`
* `get_profiler`

## Used By

* [`StreamingTracker.end`](../functions/StreamingTracker-end)
* [`ProfilerCompat.record_streaming`](../functions/ProfilerCompat-record_streaming)

## Source

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


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