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

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

> This is a method of the [**ProfilerCompat**](../classes/ProfilerCompat) class in the [**profiler**](../modules/profiler) 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

<ParamField query="name" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="stats_text" type="str" required={true}>
  No description available.
</ParamField>

## Uses

* `record_cprofile`
* `get_profiler`

## Used By

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L942">
  `praisonai/profiler.py` at line 942
</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>
