Skip to content

Conversation

@saulshanabrook
Copy link
Member

No description provided.

@saulshanabrook saulshanabrook requested a review from Copilot August 13, 2025 21:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds profiling support to the development workflow by introducing py-spy as a development dependency and documenting how to use it for performance analysis.

  • Adds py-spy as a development dependency in the dependency groups
  • Documents the usage of py-spy for profiling Python code performance

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Adds py-spy>=0.4.1 as a development dependency
docs/reference/contributing.md Documents how to use py-spy for profiling with example command

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

If there is a performance sensitive piece of code, you could isolate it in a file and profile it locally with:

```bash
uv run py-spy record --format speedscope -- python tmp.py
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two spaces between 'record' and '--format' which appears to be a typo. Should be a single space.

Copilot uses AI. Check for mistakes.
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 13, 2025

CodSpeed Instrumentation Performance Report

Merging #328 will not alter performance

Comparing py-spy (c6efaf0) with main (239a9f5)

Summary

✅ 7 untouched benchmarks

@saulshanabrook saulshanabrook merged commit 9cc65a9 into main Aug 13, 2025
21 checks passed
@saulshanabrook saulshanabrook deleted the py-spy branch August 13, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants