Skip to content

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.

1 participant