Skip to main content

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.

Project details


Download files

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

Source Distribution

nose-cprof-0.2.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file nose-cprof-0.2.1.tar.gz.

File metadata

  • Download URL: nose-cprof-0.2.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nose-cprof-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0178834759b63dc50388444d4ff8d1ae84e1ba110bb167419afee6bf4699b119
MD5 f74c0b300b73d5cfb2bd38b00f94caf7
BLAKE2b-256 6255717f9f508126e30d418bc669e317be180259e8a9691b42ad6a1568cd120c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page