tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
W\¬Qc@sYdZddlZddlmZddlmZedddƒdd
d    „ƒYZdS( s6High-perfomance logging profiler, mostly written in C.iÿÿÿÿN(t ProfilerError(twarnpy3ksOThe 'hotshot' module is not supported in 3.x, use the 'profile' module instead.t
stacklevelitProfilecBs_eZddd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Z    d
„Z
RS( iic    Cs˜|r dpd|_|r'|r'dp*d|_tj||j|jƒ|_}|jtkr”|j|_|j|_|j    |_    |j
|_
ndS(Nii( t
lineeventst linetimingst_hotshottprofilert_proft    __class__Rtclosetstarttstoptaddinfo(tselftlogfnRRtp((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyt__init__ s   cCs|jjƒdS(s-Close the logfile and terminate the profiler.N(RR
(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyR
scCs |jjƒS(s6Return the file descriptor of the profiler's log file.(Rtfileno(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyRscCs|jjƒdS(sStart the profiler.N(RR (R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyR "scCs|jjƒdS(sStop the profiler.N(RR (R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyR &scCs|jj||ƒdS(s3Add an arbitrary labelled value to the profile log.N(RR (Rtkeytvalue((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyR *scCs(ddl}|j}|j|||ƒS(s»Profile an exec-compatible string in the script
        environment.
 
        The globals from the __main__ module are used as both the
        globals and locals for the script.
        iÿÿÿÿN(t__main__t__dict__trunctx(RtcmdRtdict((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pytrun1s     cCs,t|ddƒ}|jj|||ƒ|S(s‡Evaluate an exec-compatible string in a specific
        environment.
 
        The string is compiled before profiling begins.
        s<string>texec(tcompileRtruncode(RRtglobalstlocalstcode((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyR<scOs|jj|||ƒS(sProfile a single call of a callable.
 
        Additional positional and keyword arguments may be passed
        along; the result of the call is returned, and exceptions are
        allowed to propogate cleanly, while ensuring that profiling is
        disabled on the way out.
        (Rtruncall(Rtfunctargstkw((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyR!Fs( t__name__t
__module__RR
RR R R RRR!(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyR
s                            
((t__doc__RRtwarningsRt    _warnpy3kR(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/hotshot/__init__.pyt<module>s