/snap/core20/2769/usr/lib/python3.8/__pycache__
NameSizeModeActions
abc.cpython-38.pyc53340644editdlrm
aifc.cpython-38.pyc254740644editdlrm
antigravity.cpython-38.pyc7970644editdlrm
argparse.cpython-38.pyc625910644editdlrm
ast.cpython-38.pyc167630644editdlrm
asynchat.cpython-38.pyc68510644editdlrm
asyncore.cpython-38.pyc160280644editdlrm
base64.cpython-38.pyc170710644editdlrm
bdb.cpython-38.pyc249210644editdlrm
binhex.cpython-38.pyc121340644editdlrm
bisect.cpython-38.pyc23540644editdlrm
bz2.cpython-38.pyc114450644editdlrm
calendar.cpython-38.pyc270640644editdlrm
cgi.cpython-38.pyc265440644editdlrm
cgitb.cpython-38.pyc101500644editdlrm
chunk.cpython-38.pyc48390644editdlrm
cmd.cpython-38.pyc126260644editdlrm
code.cpython-38.pyc99130644editdlrm
codecs.cpython-38.pyc339560644editdlrm
codeop.cpython-38.pyc64170644editdlrm
colorsys.cpython-38.pyc32400644editdlrm
compileall.cpython-38.pyc94100644editdlrm
configparser.cpython-38.pyc457180644editdlrm
contextlib.cpython-38.pyc202290644editdlrm
contextvars.cpython-38.pyc2430644editdlrm
copy.cpython-38.pyc69870644editdlrm
copyreg.cpython-38.pyc43180644editdlrm
cProfile.cpython-38.pyc54800644editdlrm
crypt.cpython-38.pyc33870644editdlrm
csv.cpython-38.pyc119100644editdlrm
dataclasses.cpython-38.pyc236530644editdlrm
datetime.cpython-38.pyc571730644editdlrm
decimal.cpython-38.pyc3590644editdlrm
difflib.cpython-38.pyc594380644editdlrm
dis.cpython-38.pyc158080644editdlrm
doctest.cpython-38.pyc759740644editdlrm
dummy_threading.cpython-38.pyc11100644editdlrm
enum.cpython-38.pyc259620644editdlrm
filecmp.cpython-38.pyc84270644editdlrm
fileinput.cpython-38.pyc133730644editdlrm
fnmatch.cpython-38.pyc33550644editdlrm
formatter.cpython-38.pyc175450644editdlrm
fractions.cpython-38.pyc187390644editdlrm
ftplib.cpython-38.pyc280070644editdlrm
functools.cpython-38.pyc279010644editdlrm
genericpath.cpython-38.pyc40010644editdlrm
getopt.cpython-38.pyc62710644editdlrm
getpass.cpython-38.pyc41780644editdlrm
gettext.cpython-38.pyc180000644editdlrm
glob.cpython-38.pyc43430644editdlrm
gzip.cpython-38.pyc181840644editdlrm
hashlib.cpython-38.pyc67270644editdlrm
heapq.cpython-38.pyc140700644editdlrm
hmac.cpython-38.pyc63880644editdlrm
imaplib.cpython-38.pyc414640644editdlrm
imghdr.cpython-38.pyc41180644editdlrm
imp.cpython-38.pyc98090644editdlrm
inspect.cpython-38.pyc805930644editdlrm
io.cpython-38.pyc34540644editdlrm
ipaddress.cpython-38.pyc628290644editdlrm
keyword.cpython-38.pyc9980644editdlrm
linecache.cpython-38.pyc38670644editdlrm
locale.cpython-38.pyc346740644editdlrm
lzma.cpython-38.pyc120180644editdlrm
mailbox.cpython-38.pyc602640644editdlrm
mailcap.cpython-38.pyc72060644editdlrm
mimetypes.cpython-38.pyc160310644editdlrm
modulefinder.cpython-38.pyc161150644editdlrm
netrc.cpython-38.pyc37770644editdlrm
nntplib.cpython-38.pyc339740644editdlrm
ntpath.cpython-38.pyc140910644editdlrm
nturl2path.cpython-38.pyc17440644editdlrm
numbers.cpython-38.pyc122020644editdlrm
opcode.cpython-38.pyc54200644editdlrm
operator.cpython-38.pyc136910644editdlrm
optparse.cpython-38.pyc480570644editdlrm
os.cpython-38.pyc313970644editdlrm
pathlib.cpython-38.pyc442090644editdlrm
pdb.cpython-38.pyc472260644editdlrm
pickle.cpython-38.pyc469080644editdlrm
pickletools.cpython-38.pyc672040644editdlrm
pipes.cpython-38.pyc77950644editdlrm
pkgutil.cpython-38.pyc163090644editdlrm
platform.cpython-38.pyc243260644editdlrm
plistlib.cpython-38.pyc273740644editdlrm
poplib.cpython-38.pyc135560644editdlrm
posixpath.cpython-38.pyc104610644editdlrm
pprint.cpython-38.pyc162810644editdlrm
profile.cpython-38.pyc147580644editdlrm
pstats.cpython-38.pyc220660644editdlrm
pty.cpython-38.pyc39550644editdlrm
pyclbr.cpython-38.pyc104510644editdlrm
pydoc.cpython-38.pyc836460644editdlrm
py_compile.cpython-38.pyc73520644editdlrm
queue.cpython-38.pyc106260644editdlrm
quopri.cpython-38.pyc57480644editdlrm
random.cpython-38.pyc201080644editdlrm
re.cpython-38.pyc144220644editdlrm
reprlib.cpython-38.pyc53030644editdlrm
rlcompleter.cpython-38.pyc57550644editdlrm
runpy.cpython-38.pyc81810644editdlrm
sched.cpython-38.pyc65320644editdlrm
secrets.cpython-38.pyc21900644editdlrm
selectors.cpython-38.pyc169350644editdlrm
shelve.cpython-38.pyc94900644editdlrm
shlex.cpython-38.pyc75360644editdlrm
shutil.cpython-38.pyc372190644editdlrm
signal.cpython-38.pyc28430644editdlrm
site.cpython-38.pyc171680644editdlrm
sitecustomize.cpython-38.pyc2200644editdlrm
smtpd.cpython-38.pyc264630644editdlrm
smtplib.cpython-38.pyc355320644editdlrm
sndhdr.cpython-38.pyc69890644editdlrm
socket.cpython-38.pyc277870644editdlrm
socketserver.cpython-38.pyc253610644editdlrm
sre_compile.cpython-38.pyc151420644editdlrm
sre_constants.cpython-38.pyc63590644editdlrm
sre_parse.cpython-38.pyc216470644editdlrm
ssl.cpython-38.pyc450370644editdlrm
stat.cpython-38.pyc43720644editdlrm
statistics.cpython-38.pyc336530644editdlrm
string.cpython-38.pyc73000644editdlrm
stringprep.cpython-38.pyc110170644editdlrm
struct.cpython-38.pyc3300644editdlrm
subprocess.cpython-38.pyc419670644editdlrm
sunau.cpython-38.pyc170800644editdlrm
symbol.cpython-38.pyc24040644editdlrm
symtable.cpython-38.pyc113220644editdlrm
sysconfig.cpython-38.pyc158370644editdlrm
tabnanny.cpython-38.pyc70300644editdlrm
tarfile.cpython-38.pyc630430644editdlrm
telnetlib.cpython-38.pyc182370644editdlrm
tempfile.cpython-38.pyc266530644editdlrm
textwrap.cpython-38.pyc135190644editdlrm
this.cpython-38.pyc12610644editdlrm
threading.cpython-38.pyc399760644editdlrm
timeit.cpython-38.pyc117770644editdlrm
token.cpython-38.pyc24850644editdlrm
tokenize.cpython-38.pyc171600644editdlrm
trace.cpython-38.pyc200260644editdlrm
traceback.cpython-38.pyc199380644editdlrm
tracemalloc.cpython-38.pyc173630644editdlrm
tty.cpython-38.pyc10760644editdlrm
turtle.cpython-38.pyc1300220644editdlrm
types.cpython-38.pyc91770644editdlrm
typing.cpython-38.pyc624200644editdlrm
uu.cpython-38.pyc36050644editdlrm
uuid.cpython-38.pyc236830644editdlrm
warnings.cpython-38.pyc136520644editdlrm
wave.cpython-38.pyc181490644editdlrm
weakref.cpython-38.pyc195180644editdlrm
webbrowser.cpython-38.pyc171200644editdlrm
xdrlib.cpython-38.pyc82210644editdlrm
zipapp.cpython-38.pyc58540644editdlrm
zipfile.cpython-38.pyc593360644editdlrm
zipimport.cpython-38.pyc172750644editdlrm
_bootlocale.cpython-38.pyc12430644editdlrm
_collections_abc.cpython-38.pyc287410644editdlrm
_compat_pickle.cpython-38.pyc55010644editdlrm
_compression.cpython-38.pyc41460644editdlrm
_dummy_thread.cpython-38.pyc60370644editdlrm
_markupbase.cpython-38.pyc77900644editdlrm
_osx_support.cpython-38.pyc115930644editdlrm
_pydecimal.cpython-38.pyc1607350644editdlrm
_pyio.cpython-38.pyc740790644editdlrm
_py_abc.cpython-38.pyc46700644editdlrm
_sitebuiltins.cpython-38.pyc34810644editdlrm
_strptime.cpython-38.pyc160440644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc211210644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-38.pyc211150644editdlrm
_threading_local.cpython-38.pyc64460644editdlrm
_weakrefset.cpython-38.pyc76000644editdlrm
__future__.cpython-38.pyc41580644editdlrm
__phello__.foo.cpython-38.pyc1270644editdlrm
Edit: /snap/core20/2769/usr/lib/python3.8/__pycache__/profile.cpython-38.pyc (14758B)
U yi[@spdZddlZddlZddlZdddgZGdddZdd dZdd dZGd ddZd d Z e dkrle dS)z Class for profiling Python code.NrunrunctxProfilec@s0eZdZdZddZddZddZdd Zd S) _UtilszSupport class for utility functions which are shared by profile.py and cProfile.py modules. Not supposed to be used directly. cCs ||_dSN)profiler)selfrr /usr/lib/python3.8/profile.py__init__/sz_Utils.__init__c CsF|}z(z||Wntk r,YnXW5||||XdSr)r_showr SystemExit)r statementfilenamesortprofr r r r2s  z _Utils.runc CsJ|}z,z||||Wntk r0YnXW5||||XdSr)rr rr )rrglobalslocalsrrrr r r r;s  z _Utils.runctxcCs"|dk r||n ||dSr) dump_stats print_stats)rrrrr r r r Ds z _Utils._showN)__name__ __module__ __qualname____doc__r rrr r r r r r)s   rcCstt|||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)rrrr r r rPs cCstt|||||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)rrrrrr r r r]sc@seZdZdZdZd5ddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ e e e e e e dZddZGdddZGdddZddZdd Zd6d"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0e_d7d1d2Zd3d4ZdS)8raProfiler 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. rNcCsi|_d|_d|_d|_|dkr&|j}||_|sHtj|_|_|j |_ nl||_|}z t |}Wn"t k r||_|j |_ Yn0X|dkr|j |_ n|j|_ |tfdd}||_||_|ddS)NcSs ||Srr )timersumr r r get_time_timersz(Profile.__init__..get_time_timerr)timingscurcmd c_func_namebiastime process_timerget_timetrace_dispatch_i dispatcherlen TypeErrortrace_dispatchtrace_dispatch_lrt simulate_call)rrr$r.Zlengthrr r r r s0    zProfile.__init__cCs|j}|}|d|d|j|j}|dkr8|j|_|j||||rd|}|d|d|_n|}|d|d||_dS)Nrc_callrr.r$rr#dispatch)rframeeventargrr.rr r r r,szProfile.trace_dispatchcCsT|j}||j|j}|dkr(|j|_|j||||rD||_n |||_dSNr1r2rr4r5r6rr.r r r r(s zProfile.trace_dispatch_icCs`|j}|d|j|j}|dkr,|j|_|j||||rL|d|_n|d||_dS)NgN@r1r2r9r r r trace_dispatch_macszProfile.trace_dispatch_maccCsT|j}||j|j}|dkr(|j|_|j||||rD||_n |||_dSr8)r'r.r$rr#r3)rr4r5r6r'r.r r r r-s zProfile.trace_dispatch_lc CsD|j\}}}}}}||k r*|r*|||S|||||||f|_dSNr0)r!trace_dispatch_return) rr4r.rptritretrfnrframercurr r r trace_dispatch_exceptions   z Profile.trace_dispatch_exceptioncCs|jr|j|jdk r|j\}}}}}}t|tjs|j|jksXtd|||j||jf||d|jdks|j|jdkstd|jdf|j} | j| j | j f} |dd| ||jf|_|j } | | kr| | \} } }}}| | d|||f| | <nddddif| | <dS)NzBad callrr0) r!f_back isinstancer fake_frameAssertionErrorr<f_code co_filenameco_firstlinenoco_namer )rr4r.r=r>r?r@rArBZfcodefnr ccnsttctcallersr r r trace_dispatch_calls4   zProfile.trace_dispatch_callc Csndd|jf}|dd|||jf|_|j}||krX||\}}}}} ||d||| f||<nddddif||<dS)Nrrr0)r#r!r ) rr4r.rNr rOrPrQrRrSr r r trace_dispatch_c_calls zProfile.trace_dispatch_c_callcCs||jdk rB||jdjks0td|jdf||jdd|j\}}}}}}||}||}|\} } } } } }| | || || | |f|_|j}||\}}}}}|s||}|d}| |kr|| d|| <nd|| <||d||||f||<dS)NrDz Bad returnrErr0)r!rFrIr<r )rr4r.r=r>r?r@rBZ frame_totalZpptZpitZpetZpfnpframeZpcurr rOrPrQrRrSr r r r<!s$"zProfile.trace_dispatch_return)callZ exceptionreturnr1Z c_exceptionZc_returncCs"|jdrdS||_||dS)Nr)r!r"r/)rr"r r r set_cmdWs zProfile.set_cmdc@seZdZddZddZdS)zProfile.fake_codecCs||_||_||_d|_dSNr)rKco_linerMrL)rrlinenamer r r r ]szProfile.fake_code.__init__cCst|j|j|jfSr)reprrKr[rMrr r r __repr__cszProfile.fake_code.__repr__N)rrrr r`r r r r fake_code\srac@seZdZddZdS)zProfile.fake_framecCs||_||_dSr)rJrF)rcodeZpriorr r r r gszProfile.fake_frame.__init__N)rrrr r r r r rHfsrHcCsF|dd|}|jr |jd}nd}|||}|jd||ddS)NZprofilerrDrW)rar!rHr3)rr]rbrVr4r r r r/ks   zProfile.simulate_callcCsJ|j}||j}|jdr:|jd||jd|d}q|||_dS)NrrXrDr)r'r.r!r3)rr'r.r r r simulate_cmd_completews   zProfile.simulate_cmd_completercCs$ddl}|||dSrZ)pstatsZStatsZ strip_dirsZ sort_statsr)rrrdr r r rszProfile.print_statsc Cs0t|d}|t|j|W5QRXdS)Nwb)open create_statsmarshaldumpstats)rfilefr r r rs zProfile.dump_statscCs||dSr)rcsnapshot_statsr_r r r rgszProfile.create_statsc Cs^i|_|jD]H\}\}}}}}|}d}|D] }||7}q6|||||f|j|<qdSrZ)rjr itemscopyvalues) rfuncrOrPrQrRrSZncZcallcntr r r rms  zProfile.snapshot_statscCsddl}|j}||||SrZ)__main____dict__r)rr"rrdictr r r rsz Profile.runc Cs8||t|jzt|||W5tdX|Sr)rYsys setprofiler)exec)rr"rrr r r rs    zProfile.runctxc Ost|dkr|^}}}nV|s&tdnHd|krZ|d}|^}}ddl}|jdtddntdt|d|t|t |j z|||WSt dXdS) Nrz:descriptor 'runcall' of 'Profile' object needs an argumentrqrz0Passing 'func' as keyword argument is deprecated) stacklevelz7runcall expected at least 1 positional argument, got %dr0) r*r+popwarningswarnDeprecationWarningrYr^rurvr))argskwrrqrzr r r runcalls(      zProfile.runcallz($self, func, /, *args, **kw)cCs<|jtk rtd|j}d|_z|||WS||_XdS)Nz&Subclasses must override .calibrate().r) __class__rr+r$_calibrate_inner)rmverboseZ saved_biasr r r calibrates zProfile.calibratecCs|j}dd}|fdd}|||}|||}||}|rLtd|t} |}| dtt|}||} |rtd| d} d} | jD]0\\} }}\}}}}}|d kr| |7} | |7} q|rtd | td | | |d krtd | | |d| }|rtd||S)NcSst|D]}d}qdSr;range)nixr r r f1s z$Profile._calibrate_inner..f1cSst|D] }|dqdS)Ndr)rrrr r r rls z#Profile._calibrate_inner..fz elapsed time without profiling =zf(m)zelapsed time with profiling =g)rlrz!'CPU seconds' profiler reported =ztotal # calls =r0z internal error: total calls = %dg@z+mean stopwatch overhead per profile event =) r'printrrrrr rn ValueError)rrrr'rrlZt0t1Zelapsed_noprofilepZelapsed_profileZ total_callsZ reported_timerr\funcnamerOrPrQrRrSZmeanr r r rsB         zProfile._calibrate_inner)NN)r)r)rrrrr$r r,r(r:r-rCrTrUr<r3rYrarHr/rcrrrgrmrrr__text_signature__rrr r r r rfsB& ' '     + c Csddl}ddlm}d}||d}d|_|jdddd dd |jd d d ddd|jdddddd tjdds|td| \}}|tjdd<|j dk r|j |j |_ t |dkr|jrddl}d}|j|dd}nR|d} tj d|j | t| d} t| | d}W5QRX| dddd}zt||d|j |jWn6tk r} zdt_t| jW5d} ~ XYnXn||S)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 classrr0rz(run_module(modname, run_name='__main__')) run_modulemodnamerbrwrr)__file__r __package__ __cached__)osZoptparserZallow_interspersed_argsZ add_optionruargvZ print_usageexit parse_argsrpathabspathr*rrunpyrinsertdirnamerfcompilereadrrBrokenPipeErrorstdouterrno) rrrparserZoptionsr}rrbZglobsZprognamefpexcr r r main8s^          rrr)Nr)Nr) rrur%rh__all__rrrrrrr r r r  s ' U9