nose-cprof
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.
Metadata
Release files for nose-cprof 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nose-cprof-0.2.1.tar.gz | 4.5 kB | Without provenance | Details for nose-cprof-0.2.1.tar.gz |
Release files / nose-cprof-0.2.1.tar.gz
| Download URL | nose-cprof-0.2.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0178834759b63dc50388444d4ff8d1ae84e1ba110bb167419afee6bf4699b119
|
|
BLAKE2b-256 checksum How to use checksums |
6255717f9f508126e30d418bc669e317be180259e8a9691b42ad6a1568cd120c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nose-cprof 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.