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

> get_profiler: Get the current profiler (context-aware or default).

# get\_profiler

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**profiler**](../modules/profiler) module.

Get the current profiler (context-aware or default).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_profiler() -> _ProfilerImpl
```

### Returns

<ResponseField name="Returns" type="_ProfilerImpl">
  The result of the operation.
</ResponseField>

## Used By

* [`ProfilerCompat.enable`](../functions/ProfilerCompat-enable)
* [`ProfilerCompat.disable`](../functions/ProfilerCompat-disable)
* [`ProfilerCompat.is_enabled`](../functions/ProfilerCompat-is_enabled)
* [`ProfilerCompat.clear`](../functions/ProfilerCompat-clear)
* [`ProfilerCompat.record_timing`](../functions/ProfilerCompat-record_timing)

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agent Profiles" icon="id-card" href="/docs/docs/features/agent-profiles" />

  <Card title="Profiling" icon="chart-line" href="/docs/docs/features/profiling" />
</CardGroup>
