OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
exabgp
/
vendoring
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
__init__.py
0 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📁
__pycache__
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
bitstring.py
160.25 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
cmd2.py
63.23 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
counter.py
10.43 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
docopt.py
19.22 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
gcdump.py
886 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📄
ipaddress.py
76.44 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
lsprofcalltree.py
3.48 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
objgraph.py
29.89 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
ordereddict.py
1.04 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
profiler.py
19.46 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
pyparsing.py
154.91 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
six.py
29.25 KB
03/13/2021 04:30:48 PM
rw-r--r--
Editing: gcdump.py
Close
# http://teethgrinder.co.uk/perm.php?a=Python-memory-leak-detector import gc import inspect def dump(): # force collection print("\nCollecting GARBAGE:") gc.collect() # prove they have been collected print("\nCollecting GARBAGE:") gc.collect() print("\nGARBAGE OBJECTS:") for x in gc.garbage: s = str(x) if len(s) > 80: s = "%s..." % s[:80] print("::", s) print(" type:", type(x)) print(" referrers:", len(gc.get_referrers(x))) try: print(" is class:", inspect.isclass(type(x))) print(" module:", inspect.getmodule(x)) lines, line_num = inspect.getsourcelines(type(x)) print(" line num:", line_num) for l in lines: print(" line:", l.rstrip("\n")) except Exception: pass print()