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

# end • AI Agents Framework

> end: End tracking and record to Profiler.

# end

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

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

End tracking and record to Profiler.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def end(total_tokens: int) -> None
```

## Parameters

<ParamField query="total_tokens" type="int" required={false} default="0">
  No description available.
</ParamField>

## Uses

* `time.perf_counter`
* `Profiler.record_streaming`

## Used By

* [`Profiler.streaming`](../functions/Profiler-streaming)
* [`Profiler.streaming_async`](../functions/Profiler-streaming_async)

## Source

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