[core][dashboard] Change py-spy native default to false#30636
[core][dashboard] Change py-spy native default to false#30636ericl merged 5 commits intoray-project:masterfrom
Conversation
Signed-off-by: rickyyx <rickyx@anyscale.com>
ericl
left a comment
There was a problem hiding this comment.
Can we add native=0 to the href as well in the frontend? This is to surface that you can set native=1 to turn it on.
Signed-off-by: rickyyx <rickyx@anyscale.com>
ericl
left a comment
There was a problem hiding this comment.
I think you'll also need to add/fix the test in test_dashboard_profiler.py, which assumes native frames right now.
Oh I see, had some troubles running the test locally. Will take a look at the CI run. |
rkooo567
left a comment
There was a problem hiding this comment.
Is it possible to test the change?
|
Yes, we should add a test case to the profiler suite to test the flag. |
Signed-off-by: rickyyx <rickyx@anyscale.com>
|
Modified the test to test native vs non-native profiling. Wondering if there's any good way for us to let users know the default is non-native, and they could change the parameter for native profiling? Have we thought about default to native, and retry with non native if the native profiling fails? |
ericl
left a comment
There was a problem hiding this comment.
It's not a bad idea. Like with native=1, try-catch native and fallback to non-native? Then we could enable native by default.
Not sure if there are any downsides here.
Right - we could probably hide the option from url? If |
Maybe let's do this in a separate PR then, to keep the cherry pick small / uncontroversial. |
Signed-off-by: Ricky Xu <xuchen727@hotmail.com>
…30636) Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
…30636) Signed-off-by: tmynn <hovhannes.tamoyan@gmail.com>
Signed-off-by: rickyyx rickyx@anyscale.com
Why are these changes needed?
Related issue number
Closes #30566
Checks
Run agent test which failed to get profiling/stacktrace now runs OK:

Changing query to

native=1will fail the query again:git commit -s) in this PR.scripts/format.shto lint the changes in this PR.