Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install dm.profile

How to install dm.profile

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install dm.profile
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0 Available View build log
Windows (64-bit)
1.0 Available View build log
Mac OS X (10.5+)
1.0 Available View build log
Linux (32-bit)
1.0 Available View build log
Linux (64-bit)
1.0 Available View build log
BSD (see "dm/profile/LICENSE.txt", for details)
Depended by
Lastest release
version 1.0 on Jan 5th, 2011

"profile.Profile" improvement

I started the implementation of this module in order to improve the profiler's calibration using statistical methods. Unfortunately, variance proved to be far too high and my calibration trials did not converge even for large sample sets. I had to abandon this approach.

The code is still there (in case anyone would like to look what I have tried) but I do not use it.

"pstats.Stats" improvement

Beside the profiler's not so good calibration, I was not satisfied with "pstats" format especially for the caller and callee analysis and with its insistence to write to "stdout".

Therefore, I derived a new class Stats from pstats.Stats and added new methods showStats, showCallers and showCallees which correspond to print_stats, print_callers and print_callees. They write to a file set with setOutputFile (default sys.stdout) and use a different output format. For showCallers and showCallees it is much more readable than the format used by print_callers and print_callees. I am not sure that this is also the case for the format used for showStats versus print_stats.

When you are using "Stats.print_callers" or "Stats.print_callees" and find their output unreadable, then a switch to "dm.profile.Stats" may be profitable for you.

The method showHeader outputs header information (with involved files, top level functions, number of calls and profiled time).

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.