Tin mới
profiling.sampling — Statistical profiler
pstats: Statistics object for analyzing profiler output.
Write the profile results to a file instead of standard output. The output file can be read by the pstats module for later analysis.
profile: Pure Python profiler (deprecated). (deprecated)
time: Time access and conversions.
The Profile class accepts a custom timing function, allowing you to measure different aspects of execution such as wall-clock time or CPU time. Pass the timing function to the constructor: