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

> get_statistics: Get statistical analysis of timing data.

# get\_statistics

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

Get statistical analysis of timing data.

Returns p50, p95, p99, mean, std\_dev, min, max.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_statistics(category: Optional[str]) -> Dict[str, float]
```

## Parameters

<ParamField query="category" type="Optional" required={false}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `statistics.mean`
* `statistics.stdev`
* `percentile`

## Used By

* [`Profiler.export_json`](../functions/Profiler-export_json)
* [`Profiler.export_html`](../functions/Profiler-export_html)

## Source

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