-
Notifications
You must be signed in to change notification settings - Fork 1
Amokiche/Improve sidebar name labels #593
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: dev
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This pull request improves the sidebar name labels in the ROCm profiling visualization tool to make process identification clearer. The change updates process display from [77777] to ./main.py (77777), providing both the command name and process ID for better user experience.
Key changes:
- Refactored track name creation logic into a dedicated
GetTrackName()method for better code organization - Updated process header labels to include command names alongside process IDs
- Fixed spelling from "Sample Threads" to "Sampled Threads" for consistency
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/controller/src/rocprofvis_controller_trace.h | Adds private method declaration for GetTrackName |
| src/controller/src/rocprofvis_controller_trace.cpp | Implements GetTrackName method to centralize track naming logic and applies it in LoadRocpd |
| src/view/src/rocprofvis_track_topology.cpp | Updates process header to include command name with process ID and corrects "Sample" to "Sampled" |
| src/view/src/rocprofvis_timeline_view.cpp | Renames local variable from m_graphs_reordered to graphs_reordered (non-member variable) |
| src/model/src/database/rocprofvis_db_sqlite.cpp | Removes trailing whitespace |
| src/model/src/database/rocprofvis_db_rocprof.cpp | Removes extraneous blank lines |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
drchen-amd
left a comment
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.
|
I think current look for this PR is fine enough. Maybe in the future we could put a colored dot on the sidebar at each process, and put that same colored dot in the meta area for all of a process' tracks. |
tomk-amd
left a comment
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.
For the "meta description" area of the tracks in the timeline, let's use the process name instead of the thread name for the "MAIN" thread.
Otherwise looks good.



Motivation
Improve name labels here as well, for example instead of:
- Threads
it should be:
- Threads
Technical Details
Change the logic of track name creation

Test Plan
Test Result
Submission Checklist