summaryrefslogtreecommitdiffstats
path: root/Lib/cProfile.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-08-03 09:30:49 (GMT)
committerGitHub <noreply@github.com>2018-08-03 09:30:49 (GMT)
commit28dbfb2fd343f404d0e45cc185f01181e08c7ac5 (patch)
tree717c356cba5609f38bc948cf07cee073eac0d250 /Lib/cProfile.py
parentb4d71c91498da4ae3a5c6196b44f28a05076fb80 (diff)
downloadcpython-28dbfb2fd343f404d0e45cc185f01181e08c7ac5.zip
cpython-28dbfb2fd343f404d0e45cc185f01181e08c7ac5.tar.gz
cpython-28dbfb2fd343f404d0e45cc185f01181e08c7ac5.tar.bz2
Fix docstring of Profiler class (GH-8651)
(cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Diffstat (limited to 'Lib/cProfile.py')
-rwxr-xr-xLib/cProfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cProfile.py b/Lib/cProfile.py
index f166a1c..c044be8 100755
--- a/Lib/cProfile.py
+++ b/Lib/cProfile.py
@@ -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, 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).
"""