⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3.12
/
__pycache__
/
View File Name :
profile.cpython-312.pyc
CRh4Z d Z ddlZddlZddlZddlZddlZg dZ G d d ZddZ ddZ G d d Zd Ze dk( r e yy) z Class for profiling Python code. N)runrunctxProfilec ( e Zd ZdZd Zd Zd Zd Zy)_UtilszSupport class for utility functions which are shared by profile.py and cProfile.py modules. Not supposed to be used directly. c || _ y N)profiler)selfr s /usr/lib/python3.12/profile.py__init__z_Utils.__init__1 s c | j } |j | | j ||| y # t $ r Y w xY w# | j ||| w xY wr )r r SystemExit_show)r statementfilenamesortprofs r r z _Utils.run4 sW }} -HHY JJtXt, JJtXt,s! 7 A A AA Ac | j } |j ||| | j ||| y # t $ r Y w xY w# | j ||| w xY wr )r r r r )r r globalslocalsr r r s r r z _Utils.runctx= s[ }} -KK 7F3 JJtXt, JJtXt,s! 9 AA AA Ac N ||j | y |j | y r ) dump_statsprint_stats)r r r r s r r z_Utils._showF s" OOH%T"r N)__name__ __module____qualname____doc__r r r r r r r r + s !--#r r c B t t j | || S )a Run 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. )r r r )r r r s r r r R s '?y(D99r c F t t j | |||| 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 )r r r )r r r r r s r r r _ s! '?!!)WfhMMr c e Zd ZdZdZddZd Zd Zd Zd Z d Z d Zd Zd Z ee e ee e d Zd Z G d d Z G d d Zd Zd ZddZd Zd Zd Zd Zd Zd Zd dZd Zy)!r a Profiler 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. r Nc i | _ d | _ d| _ d| _ || j }|| _ |s.t j x| _ | _ | j | _ n\|| _ | j } t | }|dk( r| j | _ n| j | _ |t fd}|| _ | j | _ | j# d y # t $ r || _ | j | _ Y Jw xY w)N c | | S r r )timersums r get_time_timerz(Profile.__init__.
.get_time_timer s uw<'r r )timingscurcmdc_func_namebiastimeprocess_timer( get_timetrace_dispatch_i dispatcherlentrace_dispatchtrace_dispatch_lr) TypeErrort simulate_call)r r( r/ r9 lengthr* s r r zProfile.__init__ s <99D )-):)::DJ"33DODJ A /Q Q;&*&9&9DO&*&;&;DO */C ( . :