/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc290340644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc423120644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc135730644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc715780644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc174630644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /usr/lib/python3.10/__pycache__/tracemalloc.cpython-310.pyc (17525B)
o 9jF@sddlmZmZddlmZddlZddlZddlZddl Z ddl Tddl m Z m Z ddZ Gdd d ZGd d d Zd d ZeGdddZeGdddeZddZGdddZGdddeZddZGdddZGdddeZGdddeZGd d!d!Zd"d#ZdS)$)SequenceIterable)total_orderingN)*)_get_object_traceback _get_tracescCsdD]>}t|dkr |dkr |rd||fSd||fSt|dks*|dkr<|r4d||fSd ||fS|d }qdS) N)BKiBMiBGiBTiBdrz%+.1f %sz%.1f %si(r z%+.0f %sz%.0f %si)abs)sizesignunitr"/usr/lib/python3.10/tracemalloc.py _format_size s rc@DeZdZdZdZddZddZddZd d Zd d Z d dZ dS) StatisticzS Statistic difference on memory allocations between two Snapshot instance.  tracebackrcountcCs||_||_||_dSNr)selfrrrrrr__init__%s zStatistic.__init__cCst|j|j|jfSr)hashrrrrrrr__hash__*zStatistic.__hash__cCs2t|tstS|j|jko|j|jko|j|jkSr) isinstancerNotImplementedrrrrotherrrr__eq__-s    zStatistic.__eq__cCsBd|jt|jd|jf}|jr|j|j}|dt|d7}|S)Nz%s: size=%s, count=%iF , average=%s)rrrrrtextaveragerrr__str__4s  zStatistic.__str__cCsd|j|j|jfS)Nz)rrrrr__repr__>szStatistic.__repr__cCs|j|j|jfSr)rrrrrrr _sort_keyBzStatistic._sort_keyN __name__ __module__ __qualname____doc__ __slots__rrr%r*r+r,rrrrrs rc@r) StatisticDiffzd Statistic difference on memory allocations between an old and a new Snapshot instance. rr size_diffr count_diffcCs"||_||_||_||_||_dSrr5)rrrr6rr7rrrrMs  zStatisticDiff.__init__cCst|j|j|j|j|jfSr)rrrr6rr7rrrrrTszStatisticDiff.__hash__cCsJt|tstS|j|jko$|j|jko$|j|jko$|j|jko$|j|jkSr)r!r4r"rrr6rr7r#rrrr%Xs      zStatisticDiff.__eq__cCsPd|jt|jdt|jd|j|jf}|jr&|j|j}|dt|d7}|S)Nz %s: size=%s (%s), count=%i (%+i)FTr&)rrrr6rr7r'rrrr*as   zStatisticDiff.__str__cCsd|j|j|j|j|jfS)Nz9r5rrrrr+ms  zStatisticDiff.__repr__cCs t|j|jt|j|j|jfSr)rr6rr7rrrrrrr,rs  zStatisticDiff._sort_keyNr.rrrrr4Fs  r4cCsg}|D]2\}}||d}|dur't||j|j|j|j|j|j}n t||j|j|j|j}||q|D]\}}t|d|j d|j }||q=|SNr)itemspopr4rrappend) old_group new_group statisticsrstatpreviousrrr_compare_grouped_statsxs"   rAc@s\eZdZdZdZddZeddZeddZd d Z d d Z d dZ ddZ ddZ dS)Framez Frame of a traceback. _framecC ||_dSrrCrframerrrr zFrame.__init__cC |jdSr8rCrrrrfilenamerHzFrame.filenamecCrINrCrrrrlinenorHz Frame.linenocCt|tstS|j|jkSrr!rBr"rDr#rrrr%  z Frame.__eq__cCt|tstS|j|jkSrrOr#rrr__lt__rPz Frame.__lt__cC t|jSr)rrDrrrrr zFrame.__hash__cCd|j|jfS)Nz%s:%srJrMrrrrr*r-z Frame.__str__cCrU)NzrVrrrrr+r-zFrame.__repr__N)r/r0r1r2r3rpropertyrJrMr%rRrr*r+rrrrrBs   rBc@steZdZdZdZdddZeddZdd Zd d Z d d Z ddZ ddZ ddZ ddZddZdddZdS) Tracebackz` Sequence of Frame instances sorted from the oldest frame to the most recent frame. )_frames _total_nframeNcCs"t|tt||_||_dSr)rrtuplereversedrYrZ)rframes total_nframerrrrs  zTraceback.__init__cC|jSr)rZrrrrr^zTraceback.total_nframecCrSr)lenrYrrrr__len__rTzTraceback.__len__cC0t|trtdd|j|DSt|j|S)Ncs|]}t|VqdSr)rB.0tracerrr z(Traceback.__getitem__..)r!slicer[rYrBrindexrrr __getitem__ zTraceback.__getitem__cC |j|jvSr)rDrYrFrrr __contains__ zTraceback.__contains__cCrSr)rrYrrrrrrTzTraceback.__hash__cCrNrr!rXr"rYr#rrrr%rPzTraceback.__eq__cCrQrrrr#rrrrRrPzTraceback.__lt__cCs t|dSr8)strrrrrr*rqzTraceback.__str__cCs:dt|}|jdur|d7}|S|d|jd7}|S)Nz z total_nframe=)r[rZr^)rsrrrr+s  zTraceback.__repr__FcCsg}|dur|dkr|| d}n |d|}n|}|r!t|}|D] }|d|j|jft|j|j}|rC|d|q#|S)Nrz File "%s", line %sz %s)r\r;rJrM linecachegetlinestrip)rlimitmost_recent_firstlines frame_slicerGlinerrrformats" zTraceback.formatr)NF)r/r0r1r2r3rrWr^rbrmrprr%rRr*r+r~rrrrrXs  rXcCst|}|dur t|SdS)z Get the traceback where the Python object *obj* was allocated. Return a Traceback instance. Return None if the tracemalloc module is not tracing memory allocations or did not trace the allocation of the object. N)rrX)objr]rrrget_object_tracebacksrc@s`eZdZdZdZddZeddZeddZed d Z d d Z d dZ ddZ ddZ dS)Tracez" Trace of a memory block. _tracecCrErrrrgrrrrs zTrace.__init__cCrIr8rrrrrdomainrHz Trace.domaincCrIrKrrrrrrrHz Trace.sizecCst|jddS)N)rXrrrrrr#szTrace.tracebackcCrNr)r!rr"rr#rrrr%'rPz Trace.__eq__cCrSr)rrrrrrr,rTzTrace.__hash__cCsd|jt|jdfS)Nz%s: %sF)rrrrrrrr*/sz Trace.__str__cCsd|jt|jd|jfS)Nz'F)rrrrrrrrr+2szTrace.__repr__N)r/r0r1r2r3rrWrrrr%rr*r+rrrrrs    rc@s<eZdZddZddZddZddZd d Zd d Zd S)_TracescCst|||_dSr)rr_traces)rtracesrrrr8s  z_Traces.__init__cCrSr)rarrrrrrb=rTz_Traces.__len__cCrc)Ncsrdr)rrerrrrhBriz&_Traces.__getitem__..)r!rjr[rrrkrrrrm@rnz_Traces.__getitem__cCror)rrrrrrrpFrqz_Traces.__contains__cCrNr)r!rr"rr#rrrr%IrPz_Traces.__eq__cCs dt|S)Nz)rarrrrr+Nrqz_Traces.__repr__N) r/r0r1rrbrmrpr%r+rrrrr7s rcCs&tj|}|dr|dd}|S)Nz.pyc)ospathnormcaseendswith)rJrrr_normalize_filenameRs   rc@seZdZddZddZdS) BaseFiltercCrEr) inclusive)rrrrrrZrTzBaseFilter.__init__cCstr)NotImplementedErrorrrrr_match]szBaseFilter._matchN)r/r0r1rrrrrrrYs rcsLeZdZ dfdd ZeddZddZd d Zd d Zd dZ Z S)FilterNFcs2t|||_t||_||_||_||_dSr)superrrr_filename_patternrM all_framesr)rrfilename_patternrMrr __class__rrrbs   zFilter.__init__cCr_r)rrrrrrkr`zFilter.filename_patterncCs2t|}t||js dS|jdurdS||jkS)NFT)rfnmatchrrMrrJrMrrr_match_frame_implos   zFilter._match_frame_implcCs||||j ASr)rrrrrr _match_framexr zFilter._match_framecsBjrtfdd|DrjSj S|d\}}||S)Nc3s |] \}}||VqdSr)r)rfrJrMrrrrh}sz*Filter._match_traceback..r)ranyrr)rrrJrMrrr_match_traceback{s   zFilter._match_tracebackcCsF|\}}}}||}|jdur!|jr|o||jkS|p ||jkS|Sr)rrr)rrgrrrr^resrrrrs   z Filter._match)NFN) r/r0r1rrWrrrrr __classcell__rrrrras   rcs0eZdZfddZeddZddZZS) DomainFiltercst|||_dSr)rr_domain)rrrrrrrs  zDomainFilter.__init__cCr_r)rrrrrrr`zDomainFilter.domaincCs|\}}}}||jk|j ASr)rr)rrgrrrr^rrrrs zDomainFilter._match)r/r0r1rrWrrrrrrrrs   rc@sXeZdZdZddZddZeddZdd Zd d Z d d Z dddZ dddZ dS)SnapshotzB Snapshot of traces of memory blocks allocated by Python. cCst||_||_dSr)rrtraceback_limit)rrrrrrrs  zSnapshot.__init__cCs@t|d}t||tjWddS1swYdS)z1 Write the snapshot into a file. wbN)openpickledumpHIGHEST_PROTOCOL)rrJfprrrrs "z Snapshot.dumpcCs8t|d }t|WdS1swYdS)z. Load a snapshot from a file. rbN)rrload)rJrrrrrs $z Snapshot.loadcs@|rtfdd|DsdS|rtfdd|DrdSdS)Nc3s|]}|VqdSrrrf trace_filterrgrrrhsz)Snapshot._filter_trace..Fc3s|] }| VqdSrrrrrrrhsT)r)rinclude_filtersexclude_filtersrgrrr _filter_traces  zSnapshot._filter_tracecst|tstdt|j|r5gg|D]}|jr!|q|qfddjjD}njj }t |j S)z Create a new Snapshot instance with a filtered traces sequence, filters is a list of Filter or DomainFilter instances. If filters is an empty list, return a new Snapshot instance with a copy of the traces. z)filters must be a list of filters, not %scsg|] }|r|qSr)rrerrrrr s  z*Snapshot.filter_traces..) r!r TypeErrortyper/rr;rrcopyrr)rfiltersr new_tracesrrr filter_tracess     zSnapshot.filter_tracesc Cs|dvr td|f|r|dvrtd|i}i}|s|jjD]`}|\}}}} z||} Wn,ty[|dkr=|} n|dkrH|dd} n |dddff} t| } | ||<Ynwz|| } | j|7_| jd7_Wq!tyt| |d|| <Yq!w|S|jjD]Y}|\}}}} |D]N} z|| } Wn ty|dkr| f} n| ddff} t| } | || <Ynwz|| } | j|7_| jd7_Wqtyt| |d|| <Yqwq|S) N)rrJrMzunknown key_type: %r)rMrJz/cumulative mode cannot by used with key type %rrrMrLr) ValueErrorrrKeyErrorrXrrr)rkey_type cumulativestats tracebacksrgrrtrace_tracebackr^rr]r?rGrrr _group_bysf             zSnapshot._group_byFcCs,|||}t|}|jdtjd|S)zd Group statistics by key_type. Return a sorted list of Statistic instances. Treversekey)rlistvaluessortrr,)rrrgroupedr>rrrr>s  zSnapshot.statisticscCs6|||}|||}t||}|jdtjd|S)z Compute the differences with an old snapshot old_snapshot. Get statistics as a sorted list of StatisticDiff instances, grouped by group_by. Tr)rrArr4r,)r old_snapshotrrr=r<r>rrr compare_tos   zSnapshot.compare_toN)F) r/r0r1r2rr staticmethodrrrrr>rrrrrrs   3 rcCs$tstdt}t}t||S)zI Take a snapshot of traces of memory blocks allocated by Python. zLthe tracemalloc module must be tracing memory allocations to take a snapshot) is_tracing RuntimeErrorrget_traceback_limitr)rrrrr take_snapshot's  r)collections.abcrr functoolsrrrvos.pathrr _tracemallocrrrrr4rArBrXrrrrrrrrrrrrrs4 (2&M'0