mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove backwards compatibility stuff from profile/cProfile.
This commit is contained in:
parent
395ed24589
commit
85477afcb6
2 changed files with 0 additions and 12 deletions
|
@ -56,11 +56,6 @@ def runctx(statement, globals, locals, filename=None):
|
||||||
result = prof.print_stats()
|
result = prof.print_stats()
|
||||||
return result
|
return result
|
||||||
|
|
||||||
# Backwards compatibility.
|
|
||||||
def help():
|
|
||||||
print("Documentation for the profile/cProfile modules can be found ")
|
|
||||||
print("in the Python Library Reference, section 'The Python Profiler'.")
|
|
||||||
|
|
||||||
# ____________________________________________________________
|
# ____________________________________________________________
|
||||||
|
|
||||||
class Profile(_lsprof.Profiler):
|
class Profile(_lsprof.Profiler):
|
||||||
|
|
|
@ -92,11 +92,6 @@ def runctx(statement, globals, locals, filename=None):
|
||||||
else:
|
else:
|
||||||
return prof.print_stats()
|
return prof.print_stats()
|
||||||
|
|
||||||
# Backwards compatibility.
|
|
||||||
def help():
|
|
||||||
print("Documentation for the profile module can be found ")
|
|
||||||
print("in the Python Library Reference, section 'The Python Profiler'.")
|
|
||||||
|
|
||||||
if os.name == "mac":
|
if os.name == "mac":
|
||||||
import MacOS
|
import MacOS
|
||||||
def _get_time_mac(timer=MacOS.GetTicks):
|
def _get_time_mac(timer=MacOS.GetTicks):
|
||||||
|
@ -588,8 +583,6 @@ class Profile:
|
||||||
return mean
|
return mean
|
||||||
|
|
||||||
#****************************************************************************
|
#****************************************************************************
|
||||||
def Stats(*args):
|
|
||||||
print('Report generating functions are in the "pstats" module\a')
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
usage = "profile.py [-o output_file_path] [-s sort] scriptfile [arg] ..."
|
usage = "profile.py [-o output_file_path] [-s sort] scriptfile [arg] ..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue