/snap/core24/1587/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1587/usr/lib/python3.12/__pycache__/profile.cpython-312.pyc (22540B)
Цi4ZdZddlZddlZddlZddlZddlZgdZGddZd dZ d dZ Gdd Z d Z e d k(re yy) z Class for profiling Python code.N)runrunctxProfilec(eZdZdZdZdZdZdZy)_UtilszSupport class for utility functions which are shared by profile.py and cProfile.py modules. Not supposed to be used directly. c||_yN)profiler)selfr s /usr/lib/python3.12/profile.py__init__z_Utils.__init__1s   c|j} |j||j|||y#t$rYwxYw#|j|||wxYwr )r r SystemExit_show)r statementfilenamesortprofs r rz _Utils.run4sW}} - HHY  JJtXt ,    JJtXt ,s!7 AAAAAc|j} |j||||j|||y#t$rYwxYw#|j|||wxYwr )r rrr)r rglobalslocalsrrrs r rz _Utils.runctx=s[}} - KK 7F 3 JJtXt ,    JJtXt ,s!9 AAAAAcN||j|y|j|yr ) dump_stats print_stats)r rrrs r rz _Utils._showFs"   OOH %   T "rN)__name__ __module__ __qualname____doc__r rrrrr rr+s !--#rrcBttj|||S)aRun statement under profiler optionally saving results in filename This function takes a single argument that can be passed to the "exec" statement, and an optional file name. In all cases this routine attempts to "exec" its first argument and gather profiling statistics from the execution. If no file name is present, then this function automatically prints a simple profiling report, sorted by the standard name string (file/line/function-name) that is presented in each line. )rrr)rrrs r rrRs '?  y(D 99rcFttj|||||S)zRun statement under profiler, supplying your own globals and locals, optionally saving results in filename. statement and filename have the same semantics as profile.run )rrr)rrrrrs r rr_s! '? ! !)Wfh MMrceZdZdZdZddZdZdZdZdZ d Z d Z d Z d Z e e e e e e d ZdZGddZGddZdZdZddZdZdZdZdZdZdZd dZdZy)!raProfiler class. self.cur is always a tuple. Each such tuple corresponds to a stack frame that is currently active (self.cur[-2]). The following are the definitions of its members. We use this external "parallel stack" to avoid contaminating the program that we are profiling. (old profiler used to write into the frames local dictionary!!) Derived classes can change the definition of some entries, as long as they leave [-2:] intact (frame and previous tuple). In case an internal error is detected, the -3 element is used as the function name. [ 0] = Time that needs to be charged to the parent frame's function. It is used so that a function call will not have to access the timing data for the parent frame. [ 1] = Total time spent in this frame's function, excluding time in subfunctions (this latter is tallied in cur[2]). [ 2] = Total time spent in subfunctions, excluding time executing the frame's function (this latter is tallied in cur[1]). [-3] = Name of the function that corresponds to this frame. [-2] = Actual frame that we correspond to (used to sync exception handling). [-1] = Our parent 6-tuple (corresponds to frame.f_back). Timing data for each function is stored as a 5-tuple in the dictionary self.timings[]. The index is always the name stored in self.cur[-3]. The following are the definitions of the members: [0] = The number of times this function was called, not counting direct or indirect recursion, [1] = Number of times this function appears on the stack, minus one [2] = Total time spent internal to this function [3] = Cumulative time that this function was present on the stack. In non-recursive functions, this is the total execution time from start to finish of each invocation of a function, including time spent in all subfunctions. [4] = A dictionary indicating for each function name, the number of times it was called by us. rNci|_d|_d|_d|_| |j}||_|s.t j x|_|_|j|_ n\||_|j} t|}|dk(r|j|_ n|j|_ |tfd}||_|j|_|j#dy#t$r||_|j|_ YJwxYw)Nc||Sr r )timersums r get_time_timerz(Profile.__init__..get_time_timersuw<'rr )timingscurcmd c_func_namebiastime process_timer(get_timetrace_dispatch_i dispatcherlentrace_dispatchtrace_dispatch_lr) TypeErrort simulate_call)r r(r/r9lengthr*s r r zProfile.__init__s  <99D )-):): :DJ"33DODJ A /Q Q;&*&9&9DO&*&;&;DO */C( .  :&# 8 % "&"7"7 8s: C%%!D D c2|j}|}|d|dz|jz |jz }|dk(r|j|_|j ||||r|}|d|dz|_y|}|d|dz|z |_y)Nrc_callr(r9r/rr.dispatch)r frameeventargr(r9rs r r6zProfile.trace_dispatchs  G aD1Q4K$&& 499 , H "||D  4== eA .AqTAaD[DFAqTAaD[1_DFrc|j}||jz |jz }|dk(r|j|_|j ||||r ||_y||z |_yNr>r?r rArBrCr(r9s r r3zProfile.trace_dispatch_ise  Gdff tyy ( H "||D  4== eQ /WDFWq[DFrc|j}|dz |jz |jz }|dk(r|j|_|j ||||r|dz |_y|dz |z |_y)NgN@r>r?rGs r trace_dispatch_maczProfile.trace_dispatch_macsr  GDL466 !DII - H "||D  4== eQ /WT\DFWT\A%DFrc|j}||jz |jz }|dk(r|j|_|j ||||r ||_y||z |_yrF)r2r9r/rr.r@)r rArBrCr2r9s r r7zProfile.trace_dispatch_lse== J $)) + H "||D  4== eQ /ZDFZ!^DFrcz|j\}}}}}}||ur|r|j||S|||z||||f|_yNr=)r,trace_dispatch_return) r rAr9rptritretrfnrframercurs r trace_dispatch_exceptionz Profile.trace_dispatch_exceptionsP+/88(S#sFD % T--fa8 8AsC5rc|jr|j|jdur|j\}}}}}}t|tjs|j|jus!Jd|||j||jf|j |d|j1|j|jdusJd|jdf|j } | j| j| jf} |dd| ||jf|_|j} | | vr| | \} } }}}| | dz|||f| | <yddddif| | <y)NzBad callrr=) r,f_back isinstancer fake_framerMf_code co_filenameco_firstlinenoco_namer+)r rAr9rNrOrPrQrRrSfcodefnr+ccnsttctcallerss r trace_dispatch_callzProfile.trace_dispatch_callsj 88 DHHRL8/3xx ,Cc3fg&8&89}} 4Lz37=v}}7"3 c_exceptionc_returncT|jdry||_|j|yN)r,r-r:)r r-s r set_cmdzProfile.set_cmdYs$ 88B< 3rceZdZdZdZy)Profile.fake_codec<||_||_||_d|_yNr)r\co_liner^r])r rlinenames r r zProfile.fake_code.__init___s 'D DLDL"#D rcZt|j|j|jfSr )reprr\r~r^r s r __repr__zProfile.fake_code.__repr__es"))4<<FG GrN)rrrr rr rr fake_coder{^s  $  HrrceZdZdZy)Profile.fake_framec ||_||_yr )r[rX)r codepriors r r zProfile.fake_frame.__init__isDKDKrN)rrrr r rr rZrhs rrZc|jdd|}|jr|jd}nd}|j||}|jd||dy)NprofilerrVrq)rr,rZr@)r rrrorAs r r:zProfile.simulate_callmsT~~iD1 88XXb\FFf- fdE1-rc|j}||jz }|jdr6|jd||jd|d}|jdr6||z |_y)NrxrsrVr)r2r9r,r@)r r2r9s r simulate_cmd_completezProfile.simulate_cmd_completeysh== J hhrl $DMM( #D$((2, :A hhrl arcddl}|j|jj|j yr})pstatsStats strip_dirs sort_statsr)r rrs r rzProfile.print_statss, T%%'2248+-rct|d5}|jtj|j|dddy#1swYyxYw)Nwb)open create_statsmarshaldumpstats)r filefs r rzProfile.dump_statssA $  (     LLQ ' ( ( (s 1AAcD|j|jyr )rsnapshot_statsrs r rzProfile.create_statss ""$ rci|_|jjD]K\}\}}}}}|j}d}|j D]}||z } |||||f|j|<Myr})rr+itemscopyvalues) r funcrarbrcrdrenccallcnts r rzProfile.snapshot_statss} /3||/A/A/C 7 +D+2r2r7llnGB">>+ g  !2r2w6DJJt   7rcHddl}|j}|j|||Sr})__main____dict__r)r r-rdicts r rz Profile.runs#  {{3d++rc|j|tj|j t |||tjd|S#tjdwxYwr )rysys setprofiler4exec)r r-rrs r rzProfile.runctxsP S t' ! gv & NN4   NN4 s AA-c|jt|tj|j ||i|tjdS#tjdwxYwr )ryrrrr4)r rargskws r runcallzProfile.runcallsM T$Z  t' !$$ NN4 CNN4 s AA/c|jtur td|j}d|_ |j ||||_S#||_wxYw)Nz&Subclasses must override .calibrate().r) __class__rr8r/_calibrate_inner)r mverbose saved_biass r calibratezProfile.calibratesN >> (DE EYY   #((G4"DI DIs A Ac<|j}d}|fd}|||}|||}||z }|r td|t} |}| jdt t |}||z } |r td| d} d} | j jD]\\} }}\}}}}}|dvs| |z } | |z } |rtd| td | | |d zk7rtd | z| |z d z | z }|r td ||S)Nc(t|D]}d}yrLrange)nixs r f1z$Profile._calibrate_inner..f1s1X  rc4t|D] }|d y)Ndr)rrrs r rz#Profile._calibrate_inner..fs1X 3 rz elapsed time without profiling =zf(m)zelapsed time with profiling =g)rrz!'CPU seconds' profiler reported =ztotal # calls =r=z internal error: total calls = %dg@z+mean stopwatch overhead per profile event =) r2printrrrrr+r ValueError)r rrr2rrt0t1elapsed_noprofilepelapsed_profile total_calls reported_timerrfuncnamerarbrcrdremeans r rzProfile._calibrate_innersP==   !Z ! ZG  46G H I Z FH- Zr'  1? C   ! $ A &XtX(ARR;&r! #  $  5} E #[ 1 !a% ?+MN N  11S8;F  ? F r)NN)rx)r)rrrrr/r r6r3rIr7rTrfrhrMr@ryrrZr:rrrrrrrrrrr rr rrhs$L D#'N %$ ! & $&, #N$-'',)  H  HH  .  ( 7, !b #<rrcddl}ddlm}d}||}d|_|j dddd d |j d d d dd|j ddddd t j dds%|jt jd|j\}}|t j dd|j*|jj|j|_ t|dkDr|jrddl}d}|j |dd}n|d} t jj#d|jj%| t'j(| 5} t+| j-| d}dddt.j0j3dd| } | | j4| j6ddd} t9|d|j|j:|S|j|S#1swYxYw#t<$r5} dt _t j| j@Yd} ~ |Sd} ~ wwxYw)Nr) OptionParserzMprofile.py [-o output_file_path] [-s sort] [-m module | scriptfile] [arg] ...)usageFz-oz --outfileoutfilezSave stats to )desthelpdefaultz-mmodule store_truezProfile a library module.)ractionrrz-sz--sortrz?Sort order when printing to stdout, based on pstats.Stats classrxr=r&z(run_module(modname, run_name='__main__')) run_modulemodnamerr)rloaderorigin)__spec____file__r __package__ __cached__)!osoptparserallow_interspersed_args add_optionrargv print_usageexit parse_argsrpathabspathr5rrunpyrinsertdirnameio open_codecompileread importlib machinery ModuleSpecrrrrBrokenPipeErrorstdouterrno) rrrparseroptionsrrrglobsprognamefpspecexcs r mainr*s! % [E  &F%*F" dKi &6 d, (%9 dH6 N 88AB<  '')OWdCHHQK"''//'//: 4y1} >> =D#..7E AwH HHOOArwwx8 9h' <2rwwy(F; <&&11z$9A2CD! KK II#" E 4goow|| D M  M' < < CJ HHSYY   M  s$:H#H H I)*IIrrw)rimportlib.machineryrrrr0r__all__rrrrrrr rr rs]'$  &##N :N~~D9x zFr