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

> record_cprofile: Store detailed cProfile output on the active profiler.

# record\_cprofile

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.

Store detailed cProfile output on the active profiler.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record_cprofile(name: str, stats_text: str) -> None
```

## Parameters

**name** `str` *required*

No description available.

**stats\_text** `str` *required*

No description available.

## Uses

* `record_cprofile`
* `get_profiler`

## Used By

* [`ProfilerCompat.record_cprofile`](../functions/ProfilerCompat-record_cprofile)
* [`profile_detailed`](../functions/profile_detailed)

## Source

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

***

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