Skip to content

Commit fc07e1e

Browse files
committed
Add guide how to profile code
1 parent a7e48e3 commit fc07e1e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ Contributions are welcome! Please feel free to submit pull requests or open issu
244244

245245
<p align="right">(<a href="#readme-top">back to top</a>)</p>
246246

247+
### Profiling
248+
249+
Use [py-spy](https://github.com/benfred/py-spy) to profile the code:
250+
251+
```sh
252+
uv run py-spy record --format speedscope -o profile.speedscope.json -- pyfracval -n 512 --df 1.6 --kf 1.1 --rp-gstd 1.2
253+
```
254+
255+
Upload the resulting `profile.speedscope.json` file to [speedscope](https://www.speedscope.app/) and inspect the runtimes.
256+
247257
### Top contributors:
248258

249259
<a href="https://github.com/aetherspritee/PyFracVAL/graphs/contributors">

0 commit comments

Comments
 (0)