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

Function

> This function is defined in the [**profiler**](https://praison.ai/docs/sdk/reference/praisonai/modules/profiler.md) module.

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

## Signature

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

### Returns

**Returns** `_ProfilerImpl`

The result of the operation.

## 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] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L756)
>
> `praisonai/profiler.py` at line 756

***

## Related Documentation

> [card] [Agent Profiles](https://praison.ai/docs/docs/features/agent-profiles)

> [card] [Profiling](https://praison.ai/docs/docs/features/profiling)


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