{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/3"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Pytest plugin that profiles test execution using cProfile and generates tabular or SVG heat graph output of performance data.","skillfed_tags":["profiling","performance-analysis","test-debugging"],"use_cases":["Identify which tests or test fixtures consume the most CPU time in a large test suite.","Generate SVG flame graphs to visualize function call hierarchies and spot performance regressions.","Analyze pstats files offline using Python's pstats module for deeper investigation of test performance.","Detect unexpected slowdowns in test execution after code changes by comparing prof files.","Profile integration tests that exercise multiple layers of an application to find bottlenecks."],"what_it_does":"pytest-profiling is a pytest plugin that automatically profiles test execution using Python's built-in cProfile module and outputs results as human-readable tables or SVG call graphs. When you run pytest with the --profile flag, the plugin captures CPU time and call counts for every function invoked during each test, then aggregates results into a combined.prof file alongside individual per-test profile files stored in a prof/ directory. The --profile-svg option generates visual heat graphs using gprof2dot and Graphviz, making it easy to spot performance bottlenecks at a glance.\n\nThe plugin integrates seamlessly into pytest's test discovery and execution flow, requiring only a one-line fixture registration. It depends on six, pytest, and gprof2dot as runtime dependencies. The package is stable (Production/Stable status) and supports Python 3.6 through 3.12, though maintenance is aging\u2014the last release was in late 2024 and the repository shows no recent activity. It is well-suited for developers who need to identify slow tests or understand where CPU time is spent during test runs.","worth_installing":"Yes, if you need to profile test performance. The plugin is stable, has low install friction, carries no license restrictions, and integrates directly into pytest with minimal configuration. The aging maintenance status (last release 623 days ago) is a minor concern but not a blocker\u2014the package is feature-complete and no known vulnerabilities exist. Install it when you need to understand where CPU time goes during testing."},"id":"pytest-profiling","links":{"html":"https://skillfed.io/packages/pytest-profiling","md":"https://skillfed.io/packages/pytest-profiling.md","pypi":"https://pypi.org/project/pytest-profiling/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-11-29","license_spdx":null,"license_treatment":"permissive","name":"pytest-profiling","python_support":"supports_current","summary":"Profiling plugin for py.test"},"popularity":{"monthly_downloads":1867549,"position":3476,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.8.1"}
