block • AI Agents Framework

block: Context manager for profiling a block of code.

block

Method

</div>

This is a method of the ProfilerCompat class in the profiler module.

Context manager for profiling a block of code.

Signature

python
def block(name: str, category: str) -> Any

Parameters

ParamField str

No description available.

ParamField str

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • block
  • get_profiler

Used By

Source

View on GitHub

praisonai/profiler.py at line 826