From aecbe2f7951a32d745d8f2e3c757d4a6d2929538 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Tue, 12 Sep 2017 22:27:19 +0900 Subject: [PATCH] line_profiler.py: update documentation of %lprun line_profiler now supports functions defined in the interpreter or loaded via %run. --- line_profiler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/line_profiler.py b/line_profiler.py index 6655ab4..a8005e3 100755 --- a/line_profiler.py +++ b/line_profiler.py @@ -253,9 +253,7 @@ def lprun(self, parameter_s=''): to profile. This option tells the profiler about these functions. Multiple -f options may be used. The argument may be any expression that gives a Python function or method object. However, one must be careful to avoid - spaces that may confuse the option parser. Additionally, functions defined - in the interpreter at the In[] prompt or via %run currently cannot be - displayed. Write these functions out to a separate file and import them. + spaces that may confuse the option parser. -m : Get all the functions/methods in a module