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
2ebd3813
Commit
2ebd3813
authored
Aug 03, 2018
by
INADA Naoki
Committed by
GitHub
Aug 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docstring of Profiler class (GH-8651)
parent
b6efc2cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/cProfile.py
Lib/cProfile.py
+2
-2
Modules/_lsprof.c
Modules/_lsprof.c
+2
-2
No files found.
Lib/cProfile.py
View file @
2ebd3813
...
...
@@ -25,11 +25,11 @@ runctx.__doc__ = _pyprofile.runctx.__doc__
# ____________________________________________________________
class
Profile
(
_lsprof
.
Profiler
):
"""Profile(
custom_timer=None, time_
unit=None, subcalls=True, builtins=True)
"""Profile(
timer=None, time
unit=None, subcalls=True, builtins=True)
Builds a profiler object using the specified timer function.
The default timer is a fast built-in one based on real time.
For custom timer functions returning integers, time
_
unit can
For custom timer functions returning integers, timeunit can
be a float specifying a scale (i.e. how long each integer unit
is, in seconds).
"""
...
...
Modules/_lsprof.c
View file @
2ebd3813
...
...
@@ -788,11 +788,11 @@ static PyMethodDef profiler_methods[] = {
};
PyDoc_STRVAR
(
profiler_doc
,
"\
Profiler(
custom_timer=None, time_
unit=None, subcalls=True, builtins=True)
\n
\
Profiler(
timer=None, time
unit=None, subcalls=True, builtins=True)
\n
\
\n
\
Builds a profiler object using the specified timer function.
\n
\
The default timer is a fast built-in one based on real time.
\n
\
For custom timer functions returning integers, time
_
unit can
\n
\
For custom timer functions returning integers, timeunit can
\n
\
be a float specifying a scale (i.e. how long each integer unit
\n
\
is, in seconds).
\n
\
"
);
...
...
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