memory_profilers
Memory profiler.
profile_memory(func)
Decorator to profile a function's memory usage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
func |
Callable
|
The function to be profiled. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Callable |
Callable
|
The decorated function. |
Source code in src/orsm/profilers/memory/memory_profilers.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |