Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
85477afc
Commit
85477afc
authored
Sep 04, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove backwards compatibility stuff from profile/cProfile.
parent
395ed245
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
Lib/cProfile.py
Lib/cProfile.py
+0
-5
Lib/profile.py
Lib/profile.py
+0
-7
No files found.
Lib/cProfile.py
View file @
85477afc
...
@@ -56,11 +56,6 @@ def runctx(statement, globals, locals, filename=None):
...
@@ -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
):
...
...
Lib/profile.py
View file @
85477afc
...
@@ -92,11 +92,6 @@ def runctx(statement, globals, locals, filename=None):
...
@@ -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:
...
@@ -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] ..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment