-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Add a task gpu profile to align with the other profiling functions #59994
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
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.
Code Review
This pull request adds a new endpoint for GPU profiling of a specific task, which is a great addition to the profiling capabilities. The implementation is consistent with existing profiling functions for CPU and tracebacks.
My review focuses on improving code maintainability by identifying several areas of code duplication that have become more apparent with the addition of this new function. I've suggested refactoring these duplicated blocks into helper methods. I also have a minor suggestion to improve logging consistency.
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Description
This function accepts a task id instead of a worker id and fails if the task is no longer running, unlike the worker id which will gladly profile whatever is currently running on the worker.
Related issues
Additional information