Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy profiling option #1375

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Easy profiling option #1375

wants to merge 3 commits into from

Conversation

jcheng5
Copy link
Collaborator

@jcheng5 jcheng5 commented May 14, 2024

The idea is to add --profile to your shiny run command, and that will run Shiny under py-spy, then launch speedscope with the resulting trace.

TODO

  • On Windows, sys.orig_argv has two executables in the argv array (python.exe and shiny.exe), we just need the second. Why?
  • Currently pass the profiling data to speedscope.app via URL hash, need to work around the limits of URL hash sizes.

jcheng5 and others added 3 commits May 13, 2024 21:41
I couldn't get py-spy working on Python 3.11
or later on Windows
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.

None yet

1 participant