[rocprofiler-sdk] Enable region argument annotation in perfetto output trace#3854
Open
[rocprofiler-sdk] Enable region argument annotation in perfetto output trace#3854
Conversation
fd77ad6 to
bb0e3fe
Compare
bb0e3fe to
88e23bf
Compare
yhuiYH
reviewed
Mar 12, 2026
projects/rocprofiler-sdk/tests/pytest-packages/tests/rocprofv3.py
Outdated
Show resolved
Hide resolved
projects/rocprofiler-sdk/source/lib/python/rocpd/source/perfetto.cpp
Outdated
Show resolved
Hide resolved
88e23bf to
239c4c9
Compare
yhuiYH
approved these changes
Mar 17, 2026
Contributor
yhuiYH
left a comment
There was a problem hiding this comment.
LGTM. CI tests are queued because the pool has been re-purposed. But it was passing before and I checked the tests locally, seems to be passing.
jrmadsen
reviewed
Mar 17, 2026
Contributor
jrmadsen
left a comment
There was a problem hiding this comment.
Why not just annotate all the rocpd_args associated with the event_id? Wouldn't this include the event handle?
4a2cee2 to
8137764
Compare
Member
Author
@jrmadsen sure, please see enable arg annotation for all instead of only event ID. Updated tests as well to validate |
1fe0a46 to
ca1ea6e
Compare
1 task
jrmadsen
requested changes
Mar 19, 2026
projects/rocprofiler-sdk/tests/pytest-packages/tests/rocprofv3.py
Outdated
Show resolved
Hide resolved
projects/rocprofiler-sdk/tests/rocprofv3/rocpd/validate_annotations.py
Outdated
Show resolved
Hide resolved
486c4da to
d8d4995
Compare
23ce49d to
a043db3
Compare
a043db3 to
bdd2285
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
This PR enables function argument annotation in Perfetto with
--annotate-args.Without info like event ID arg value, it may be hard to follow event dependencies and debug HIP event synchronization.
The goal is disambiguating waits across multiple events/streams: when a stream waits on different events originating from different streams, having the event ID allows them to correlate
hipStreamWaitEventwith the correspondinghipEventRecordcalls and identify which event (and thus which upstream stream/work) is actually blocking execution.With this PR: When
--annotate-args(introduced in #340) is used in rocpd to perfetto conversion, the function arguments get annotatedTechnical Details
--annotate-argsJIRA ID
Resolves AIPROFSDK-195
Test Plan
Local testing:
Test Result
Submission Checklist