Skip to content

[rocprofiler-sdk] Updating documentation for --selected-regions#3327

Open
bgopesh wants to merge 11 commits intodevelopfrom
users/bgopesh/use_of_selected_regions
Open

[rocprofiler-sdk] Updating documentation for --selected-regions#3327
bgopesh wants to merge 11 commits intodevelopfrom
users/bgopesh/use_of_selected_regions

Conversation

@bgopesh
Copy link
Copy Markdown
Contributor

@bgopesh bgopesh commented Feb 18, 2026

Motivation

https://amd-hub.atlassian.net/browse/AIPROFSDK-55
https://amd-hub.atlassian.net/browse/AIPROFSDK-148

Technical Details

  • 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-regions help text to explicitly state it needs to be combined with --marker-trace
  • Included code examples demonstrating thread-specific control and multi-region profiling patterns

JIRA ID

https://amd-hub.atlassian.net/browse/AIPROFSDK-55

Test Plan

Test Result

Submission Checklist

@bgopesh bgopesh requested a review from a team as a code owner February 18, 2026 06:05
Copilot AI review requested due to automatic review settings February 18, 2026 06:05
@bgopesh bgopesh requested a review from a team as a code owner February 18, 2026 06:05
@github-actions github-actions bot added documentation Improvements or additions to documentation project: rocprofiler-sdk labels Feb 18, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 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-regions help 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.

Copy link
Copy Markdown

@gsitaram gsitaram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please help clarify my questions.

@bgopesh
Copy link
Copy Markdown
Contributor Author

bgopesh commented Feb 19, 2026

@gsitaram Yes, I found out yesterday after talking to Jonathan that --marker-trace is not needed fir --selected-regions. Apparently there is an unmerged PR due to CI issues which causes the confusion #1496 . We can update the doc once that PR is merged.

@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch from 5288c4b to 1381b38 Compare February 19, 2026 07:30
@jrmadsen jrmadsen changed the title updating documentation for --selected-regions [rocprofiler-sdk] Updating documentation for --selected-regions Feb 24, 2026
@itrowbri itrowbri self-assigned this Mar 3, 2026
@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch 5 times, most recently from 860cc61 to 480684d Compare March 26, 2026 15:52
@bgopesh bgopesh removed the WIP label Mar 30, 2026
@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch 2 times, most recently from 879f8d8 to d032cd9 Compare March 30, 2026 05:34
@bgopesh
Copy link
Copy Markdown
Contributor Author

bgopesh commented Mar 30, 2026

@itrowbri please review, so I can merge this soon.

@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch from d032cd9 to 80f16b2 Compare March 31, 2026 12:03
@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch from 80f16b2 to fa48c71 Compare March 31, 2026 15:57
@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch from fa48c71 to 3873b46 Compare March 31, 2026 17:10
@bgopesh bgopesh requested a review from gsitaram March 31, 2026 17:11
Copy link
Copy Markdown

@gsitaram gsitaram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one change that I recommend.

@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch from 6a2fe81 to f4e8171 Compare April 1, 2026 04:12
Copy link
Copy Markdown
Contributor

@srihari-uttanur srihari-uttanur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few minor questions and suggestions.

@bgopesh bgopesh force-pushed the users/bgopesh/use_of_selected_regions branch from 24052ec to 1671fe6 Compare April 1, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation organization: ROCm project: rocprofiler-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants