[rocprofiler-sdk] Updating documentation for --selected-regions#3327
[rocprofiler-sdk] Updating documentation for --selected-regions#3327
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive documentation for the --selected-regions option in rocprofv3, explaining how it works with the roctxProfilerPause() and roctxProfilerResume() APIs to enable fine-grained profiling control. The PR also updates the help text to clarify that --selected-regions requires --marker-trace to function properly.
Changes:
- Added extensive documentation explaining two modes of operation for profiler control: default behavior (profile everything except marked regions) and selected-regions mode (profile only marked regions)
- Updated the
--selected-regionshelp text to explicitly state it needs to be combined with--marker-trace - Included code examples demonstrating thread-specific control and multi-region profiling patterns
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst | Added 150+ lines of comprehensive documentation covering the two operational modes, usage examples, thread-specific control, compatibility with other options, and a comparison table |
| projects/rocprofiler-sdk/source/bin/rocprofv3.py | Updated help text to clarify that --selected-regions requires --marker-trace |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Outdated
Show resolved
Hide resolved
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Show resolved
Hide resolved
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Show resolved
Hide resolved
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Outdated
Show resolved
Hide resolved
5288c4b to
1381b38
Compare
860cc61 to
480684d
Compare
879f8d8 to
d032cd9
Compare
|
@itrowbri please review, so I can merge this soon. |
d032cd9 to
80f16b2
Compare
80f16b2 to
fa48c71
Compare
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Outdated
Show resolved
Hide resolved
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Outdated
Show resolved
Hide resolved
fa48c71 to
3873b46
Compare
gsitaram
left a comment
There was a problem hiding this comment.
LGTM with one change that I recommend.
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Outdated
Show resolved
Hide resolved
6a2fe81 to
f4e8171
Compare
projects/rocprofiler-sdk/source/docs/how-to/using-rocprofiler-sdk-roctx.rst
Outdated
Show resolved
Hide resolved
srihari-uttanur
left a comment
There was a problem hiding this comment.
just a few minor questions and suggestions.
…sdk-roctx.rst Co-authored-by: Srihari Uttanur <srihari.u@amd.com>
24052ec to
1671fe6
Compare
Motivation
https://amd-hub.atlassian.net/browse/AIPROFSDK-55
https://amd-hub.atlassian.net/browse/AIPROFSDK-148
Technical Details
JIRA ID
https://amd-hub.atlassian.net/browse/AIPROFSDK-55
Test Plan
Test Result
Submission Checklist