-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat: port collect-profiles.sh to 'ipfs diag profile' #8786
Conversation
2022-03-17 conversation: going to get rid of the shell script. Moved back to in progress. |
5989330
to
e78e2e1
Compare
This adds mutex and block profiles, and brings the command up-to-par with 'collect-profiles.sh', so that we can remove it. Profiles are also now collected concurrently, which improves the runtime from (profile_time * num_profiles) to just (profile_time). Note that this has a backwards-incompatible change, removing --cpu-profile-time in favor of the more general --profile-time, which covers all sampling profiles.
2dbbbbe
to
defc2ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (tweaked helptext a tiny bit).
Before we merge, it would be useful to get additional review / :+1: from devrel folks (@Jorropo), just to keep them in the loop.
(ipfs diag profile
will be the new go-to command that we ask people to run while debugging issues)
I'm not sure what does this PR does, I belive it's mainly a refactor / shuffling code arround kind of things. My issues of
Point 1 can be fixed with a I've actually being using the shell script instead (or just |
IIUC we didn't use Point 1 is already addressed in this PR, if I think it would be nice though to control exactly what profiles are run, which would be easy to add, so I'll add that. |
5f418c2
to
163ff1c
Compare
163ff1c
to
f5c7624
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Keeping
.zip
for now is fine (windows interop, allows user to reason what they sent to a third-party) --collectors
works as expected, thanks!
Let's merge this, a huge improvement when compared to bin/collect-profiles.sh
* feat: add block profiling to collect-profiles.sh * feat: add more profiles to 'ipfs diag profile' This adds mutex and block profiles, and brings the command up-to-par with 'collect-profiles.sh', so that we can remove it. Profiles are also now collected concurrently, which improves the runtime from (profile_time * num_profiles) to just (profile_time). Note that this has a backwards-incompatible change, removing --cpu-profile-time in favor of the more general --profile-time, which covers all sampling profiles. * docs(cli): ipfs diag profile * add CLI flag to select specific diag collectors Co-authored-by: Marcin Rataj <lidel@lidel.org>
No description provided.