#4 Open
Repository
eteq eteq
Branch
default
Repository
robertkern robertkern
Branch
default

Added stripzeros and add_module to support ipython -m and -s

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update 
hg pull -r default https://bitbucket.org/eteq/line_profiler
Author
  1. Erik Tollerud avatarErik Tollerud
Reviewers
Description

This adds two new feature:

  • A stripzeros option to the various printing functions. This just removes any functions that contributed 0 total time.
  • A LineProfiler.add_module method, which adds all the functions in a module, and the function in any classes of that module.

It also updates the ipython lprun magic with "-s" and "-m" options to turn these features on.

Comments (0)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.