-
Notifications
You must be signed in to change notification settings - Fork 506
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
No-op Configuration #591
Comments
Making this a feature makes me a bit nervous — if you accidentally committed it, or published with it, it would propagate to all your dependencies etc... We could make a |
Is it good enough for you to just use AIUI flamegraph does a lot of post-processing in scripts. I wonder if you could just filter unwanted rayon symbols from your stacks that way? Then you'll still be representing the parallel workload otherwise, which could be helpful. |
@nikomatsakis That concern is completely valid. I was just using feature as an example. Any solution that is a single switch to flip is equally satisfactory. @cuviper I've attached below what it looks like with |
That sounds like a great solution! |
Hi. Is there any update on this? I see that the issue has been open for 4 years now. Just wanted to check if it will be picked up some time later this year. I also have the same use case (cleaning up If no one is taking a shot, I can try making a pull request (disclaimer: I haven't looked at |
Also see the discussion in #861, but I'm not aware of anyone actually working on it yet. |
Not entirely -- I think OP wanted this on platforms that do support threads well, but all the work-stealing makes it hard to decipher what's going on in tools that look at backtraces, like flamegraph. I have had luck using |
Ah so the functionality is there, but the |
You could also set threads=1 and |
When using flamegraph profiling rayon pollutes the call stack making it very hard to find my code in the graph, and I have to manually replace all instances of
par_
. It'd be nice if I could instead enable a feature flag in rayon so that I don't have to change every code instance and just have to changeCargo.toml
that simply made all parallel iterator calls sequential. I've included two graphs below with and without rayon calls to show the disparity between the two.With rayon
Without rayon
The text was updated successfully, but these errors were encountered: