/snap/core20/2866/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.pyc413420644editdlrm
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.pyc134590644editdlrm
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/2866/usr/lib/python3.8/__pycache__/tracemalloc.cpython-38.pyc (17363B)
U ʦiB@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@|r0d||fSd||fSt|dksT|dkrx|rhd||fSd ||fS|d }qdS) N)BZKiBZMiBZGiBTiBdrz%+.1f %sz%.1f %si(r z%+.0f %sz%.0f %si)abs)sizeZsignZunitr !/usr/lib/python3.8/tracemalloc.py _format_size src@sDeZdZdZdZddZddZddZd d Zd d Z d dZ dS) StatisticzS Statistic difference on memory allocations between two Snapshot instance.  tracebackr countcCs||_||_||_dSNr)selfrr rr r r__init__%szStatistic.__init__cCst|j|j|jfSr)hashrr rrr r r__hash__*szStatistic.__hash__cCs$|j|jko"|j|jko"|j|jkSrrrotherr r r__eq__-s    zStatistic.__eq__cCsBd|jt|jd|jf}|jr>|j|j}|dt|d7}|S)Nz%s: size=%s, count=%iF , average=%s)rrr rrtextZaverager r r__str__2s  zStatistic.__str__cCsd|j|j|jfS)Nz)rrr r r__repr__<szStatistic.__repr__cCs|j|j|jfSr)r rrrr r r _sort_key@szStatistic._sort_keyN __name__ __module__ __qualname____doc__ __slots__rrrr r!r"r r r rrs rc@sDeZdZdZdZddZddZddZd d Zd d Z d dZ dS) StatisticDiffzd Statistic difference on memory allocations between an old and a new Snapshot instance. rr size_diffr count_diffcCs"||_||_||_||_||_dSrr*)rrr r+rr,r r rrKs zStatisticDiff.__init__cCst|j|j|j|j|jfSr)rrr r+rr,rr r rrRszStatisticDiff.__hash__cCs<|j|jko:|j|jko:|j|jko:|j|jko:|j|jkSrr*rr r rrVs     zStatisticDiff.__eq__cCsPd|jt|jdt|jd|j|jf}|jrL|j|j}|dt|d7}|S)Nz %s: size=%s (%s), count=%i (%+i)FTr)rrr r+rr,rr r rr ]s   zStatisticDiff.__str__cCsd|j|j|j|j|jfS)Nz9r*rr r rr!is  zStatisticDiff.__repr__cCs t|j|jt|j|j|jfSr)r r+r r,rrrr r rr"ns  zStatisticDiff._sort_keyNr#r r r rr)Ds r)cCsg}|D]d\}}||d}|dk rNt||j|j|j|j|j|j}nt||j|j|j|j}||q |D]*\}}t|d|j d|j }||qz|SNr)itemspopr)r rappend) old_group new_group statisticsrstatZpreviousr r r_compare_grouped_statsts*     r5c@s\eZdZdZdZddZeddZeddZd d Z d d Z d dZ ddZ ddZ dS)Framez Frame of a traceback. _framecCs ||_dSrr7rframer r rrszFrame.__init__cCs |jdSr-r7rr r rfilenameszFrame.filenamecCs |jdSNr7rr r rlinenosz Frame.linenocCs |j|jkSrr7rr r rrsz Frame.__eq__cCs |j|jkSrr7rr r r__lt__sz Frame.__lt__cCs t|jSr)rr8rr r rrszFrame.__hash__cCsd|j|jfS)Nz%s:%sr;r>rr r rr sz Frame.__str__cCsd|j|jfS)Nzr@rr r rr!szFrame.__repr__N)r$r%r&r'r(rpropertyr;r>rr?rr r!r r r rr6s  r6c@sfeZdZdZdZddZddZddZd d Zd d Z d dZ ddZ ddZ ddZ dddZdS) Tracebackz` Sequence of Frame instances sorted from the oldest frame to the most recent frame. _framescCst|tt||_dSr)rrtuplereversedrD)rframesr r rrs zTraceback.__init__cCs t|jSr)lenrDrr r r__len__szTraceback.__len__cCs4t|tr"tdd|j|DSt|j|SdS)Ncss|]}t|VqdSr)r6.0tracer r r sz(Traceback.__getitem__..) isinstanceslicerErDr6rindexr r r __getitem__s zTraceback.__getitem__cCs |j|jkSr)r8rDr9r r r __contains__szTraceback.__contains__cCs t|jSr)rrDrr r rrszTraceback.__hash__cCs |j|jkSrrCrr r rrszTraceback.__eq__cCs |j|jkSrrCrr r rr?szTraceback.__lt__cCs t|dSr-)strrr r rr szTraceback.__str__cCsdt|fS)Nz)rErr r rr!szTraceback.__repr__NFcCsg}|dk r2|dkr$|| d}q6|d|}n|}|rBt|}|D]@}|d|j|jft|j|j}|rF|d|qF|S)Nrz File "%s", line %sz %s)rFr0r;r> linecachegetlinestrip)rlimitZmost_recent_firstlinesZ frame_slicer:liner r rformats  zTraceback.format)NF)r$r%r&r'r(rrIrRrSrrr?r r!r[r r r rrBsrBcCs t|}|dk rt|SdSdS)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)rrB)objrGr r rget_object_tracebacksr]c@s`eZdZdZdZddZeddZeddZed d Z d d Z d dZ ddZ ddZ dS)Tracez" Trace of a memory block. _tracecCs ||_dSrr_rrLr r rrszTrace.__init__cCs |jdSr-r_rr r rdomainsz Trace.domaincCs |jdSr<r_rr r rr sz Trace.sizecCst|jdS)N)rBr`rr r rr szTrace.tracebackcCs |j|jkSrr_rr r rrsz Trace.__eq__cCs t|jSr)rr`rr r rrszTrace.__hash__cCsd|jt|jdfS)Nz%s: %sF)rrr rr r rr sz Trace.__str__cCsd|jt|jd|jfS)Nz'F)rbrr rrr r rr!szTrace.__repr__N)r$r%r&r'r(rrArbr rrrr r!r r r rr^s   r^c@s<eZdZddZddZddZddZd d Zd d Zd S)_TracescCst|||_dSr)rr_traces)rtracesr r rr s z_Traces.__init__cCs t|jSr)rHrerr r rrI%sz_Traces.__len__cCs4t|tr"tdd|j|DSt|j|SdS)Ncss|]}t|VqdSr)r^rJr r rrM*sz&_Traces.__getitem__..)rNrOrErer^rPr r rrR(s z_Traces.__getitem__cCs |j|jkSr)r`rerar r rrS.sz_Traces.__contains__cCs |j|jkSr)rerr r rr1sz_Traces.__eq__cCs dt|S)Nz)rHrr r rr!4sz_Traces.__repr__N) r$r%r&rrIrRrSrr!r r r rrds rdcCs&tj|}|dr"|dd}|S)Nz.pyc)ospathnormcaseendswith)r;r r r_normalize_filename8s   rlc@seZdZddZddZdS) BaseFiltercCs ||_dSr) inclusive)rrnr r rr@szBaseFilter.__init__cCstdSr)NotImplementedErrorrar r r_matchCszBaseFilter._matchN)r$r%r&rrpr r r rrm?srmcsJeZdZdfdd ZeddZddZd d Zd d Zd dZ Z S)FilterNFcs2t|||_t||_||_||_||_dSr)superrrnrl_filename_patternr> all_framesrb)rrnfilename_patternr>rtrb __class__r rrHs   zFilter.__init__cCs|jSr)rsrr r rruQszFilter.filename_patterncCs6t|}t||jsdS|jdkr(dS||jkSdS)NFT)rlfnmatchrsr>rr;r>r r r_match_frame_implUs  zFilter._match_frame_implcCs||||j ASr)rzrnryr r r _match_frame^szFilter._match_framecsHjr,tfdd|Dr"jSj Sn|d\}}||SdS)Nc3s|]\}}||VqdSr)rz)rKr;r>rr rrMcsz*Filter._match_traceback..r)rtanyrnr{)rrr;r>r rr_match_tracebackas   zFilter._match_tracebackcCsD|\}}}||}|jdk r@|jr2|o0||jkS|p>||jkS|Sr)r}rbrn)rrLrbr rresr r rrpls   z Filter._match)NFN) r$r%r&rrArurzr{r}rp __classcell__r r rvrrqGs    rqcs0eZdZfddZeddZddZZS) DomainFiltercst|||_dSr)rrr_domain)rrnrbrvr rrxs zDomainFilter.__init__cCs|jSr)rrr r rrb|szDomainFilter.domaincCs|\}}}||jk|j ASr)rbrn)rrLrbr rr r rrps zDomainFilter._match)r$r%r&rrArbrprr r rvrrws  rc@sXeZdZdZddZddZeddZdd Zd d Z d d Z dddZ dddZ dS)SnapshotzB Snapshot of traces of memory blocks allocated by Python. cCst||_||_dSr)rdrftraceback_limit)rrfrr r rrs zSnapshot.__init__c Cs*t|d}t||tjW5QRXdS)z1 Write the snapshot into a file. wbN)openpickledumpZHIGHEST_PROTOCOL)rr;fpr r rrs z Snapshot.dumpc Cs,t|d}t|W5QRSQRXdS)z. Load a snapshot from a file. rbN)rrload)r;rr r rrs z Snapshot.loadcs@|rtfdd|DsdS|r.Fc3s|]}| VqdSrrrrr rrMsT)r|)rinclude_filtersexclude_filtersrLr rr _filter_traces  zSnapshot._filter_tracecst|tstdt|j|rjgg|D] }|jrB|q,|q,fddjjD}n jj }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 )rrJrrrr r s z*Snapshot.filter_traces..) rNr TypeErrortyper$rnr0rfrecopyrr)rfiltersrZ new_tracesr rr filter_tracess    zSnapshot.filter_tracesc Cs|dkrtd|f|r.|dkr.td|i}i}|s|jjD]}|\}}}z ||} WnZtk r|dkr||} n(|dkr|dd} n|dddff} t| } | ||<YnXz(|| } | j|7_| jd7_WqDtk rt| |d|| <YqDXqDn|jjD]}|\}}}|D]} z || } WnFtk r~|dkr\| f} n| ddff} t| } | || <YnXz(|| } | j|7_| jd7_Wn&tk rt| |d|| <YnXq(q|S) N)rr;r>zunknown key_type: %r)r>r;z/cumulative mode cannot by used with key type %rrr>r=r) ValueErrorrfreKeyErrorrBr rr) rkey_type cumulativeZstatsZ tracebacksrLrbr Ztrace_tracebackrrGr4r:r r r _group_bysZ        zSnapshot._group_byFcCs,|||}t|}|jdtjd|S)zd Group statistics by key_type. Return a sorted list of Statistic instances. Treversekey)rlistvaluessortrr")rrrZgroupedr3r r rr3s  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)rr5rr)r")rZ old_snapshotrrr2r1r3r r r compare_tos    zSnapshot.compare_toN)F)F) r$r%r&r'rr staticmethodrrrrr3rr r r rrs  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 RuntimeErrorrZget_traceback_limitr)rfrr r r take_snapshot s r)Zcollections.abcrr functoolsrrxrUos.pathrhrZ _tracemallocrrrrr)r5r6rBr]r^rdrlrmrqrrrr r r rs2 &0"?%0