mirror of
https://github.com/python/cpython.git
synced 2026-04-23 04:11:18 +00:00
Fix docstring of Profiler class (GH-8651)
(cherry picked from commit 2ebd3813af)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
This commit is contained in:
parent
b4d71c9149
commit
28dbfb2fd3
2 changed files with 4 additions and 4 deletions
|
|
@ -25,11 +25,11 @@ def runctx(statement, globals, locals, filename=None, sort=-1):
|
|||
# ____________________________________________________________
|
||||
|
||||
class Profile(_lsprof.Profiler):
|
||||
"""Profile(custom_timer=None, time_unit=None, subcalls=True, builtins=True)
|
||||
"""Profile(timer=None, timeunit=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).
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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, timeunit=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\
|
||||
");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue