From 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Fri, 3 Aug 2018 18:09:57 +0900 Subject: Fix docstring of Profiler class (GH-8651) --- Lib/cProfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/cProfile.py') diff --git a/Lib/cProfile.py b/Lib/cProfile.py index c8045043cb..3c9be3cbd2 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). """ -- cgit v1.2.1