o
    -i`                     @   s"   d Z ddlZddlZdddZdS )z(
Provides a timeslice logging decorator
    Nc                    s    fdd}|S )zj
    Logs the execution time of the decorated function.
    Always place it beneath other decorators.
    c                    s   t   fdd}|S )Nc                     sV   t  } | i |}t  | }d u r d j d j dn}d|| |S )Nz
Function '.'z%s: Elapsed time %.7f secs)timeperf_counter
__module____qualname__debug)argskwargsstartresultelapsedprefix)funcloggermsg X/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/vllm/logging_utils/log_time.py_wrapper   s   z)logtime.<locals>._inner.<locals>._wrapper)	functoolswraps)r   r   r   r   )r   r   _inner   s   zlogtime.<locals>._innerr   )r   r   r   r   r   r   logtime   s   r   )N)__doc__r   r   r   r   r   r   r   <module>   s   