Skip to main content
Help us improve Python packaging – donate today!

A python nose plugin to profile using cProfile rather than the default Hotshot profiler.

Project Description

A plugin to use cProfile to profile nosetests, rather than the built-in Hotshot profiler.

Profiling tests can help track down sources of performance issues in code, especially if a synthetic test can be created to focus on the area of concern.

The output generated by this plugin can easily be browsed using pstats_viewer, or any other pstats-compatible viewer.

Getting started

Prerequisites

This is a plugin for nose, so it’s useless without that installed.

Installation

pip install nose-cprof

Usage

This plugin adds some new options to nosetests:

--with-cprofile       Enable plugin cProfiler:  Use this plugin to run tests
                      using the cProfile profiler.  [NOSE_WITH_CPROFILE]
--cprofile-stats-file=FILE
                      Output file name; default "stats.dat"
--cprofile-stats-erase
                      Erase previously-collected profiling statistics before
                      run. Without this option, new profiling stats will be
                      merged with the prior contents of the output file.

Release history Release notifications

This version
History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

History Node

0.1-2

History Node

0.1-1

History Node

0.1-0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nose-cprof-0.2.1.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None Jan 2, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page