Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

Split ActivityProfilerController into Sync and Async Handlers (#1269) - #1269

Closed
ryanzhang22 wants to merge 1 commit into
pytorch:mainfrom
ryanzhang22:export-D92550422
Closed

ryanzhang22 wants to merge 1 commit into
pytorch:mainfrom
ryanzhang22:export-D92550422

Conversation

@ryanzhang22

@ryanzhang22 ryanzhang22 commented Feb 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Reviewed By: scotts

Differential Revision: D92550422

@meta-cla meta-cla Bot added the cla signed label Feb 20, 2026
@meta-codesync

meta-codesync Bot commented Feb 20, 2026

Copy link
Copy Markdown

@ryanzhang22 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92550422.

ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Feb 20, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Feb 20, 2026
…h#1269)

Summary:
Pull Request resolved: pytorch#1269

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Feb 20, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Feb 20, 2026
…h#1269)

Summary:
Pull Request resolved: pytorch#1269

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Mar 9, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Mar 11, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Mar 11, 2026
…h#1269)

Summary:
Pull Request resolved: pytorch#1269

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
@meta-codesync meta-codesync Bot changed the title Split ActivityProfilerController into Sync and Async Handlers Split ActivityProfilerController into Sync and Async Handlers (#1269) Apr 6, 2026
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Apr 6, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Apr 7, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Apr 9, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Apr 11, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Reviewed By: scotts

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Apr 11, 2026
…h#1269)

Summary:
Pull Request resolved: pytorch#1269

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Reviewed By: scotts

Differential Revision: D92550422
ryanzhang22 added a commit to ryanzhang22/kineto that referenced this pull request Apr 13, 2026
…h#1269)

Summary:

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Reviewed By: scotts

Differential Revision: D92550422
…h#1269)

Summary:
Pull Request resolved: pytorch#1269

Part 1 of a refactor to improve safety and readability around sync/async profiling.

This is a straightforward (no-op) split that creates Sync/AsyncActivityProfilerHandler, which contains the methods which belonged to the ActivityProfilerController but are only used for one type of tracing. The original methods in the controller become thin wrappers that forward the request to the appropriate handler.

Reviewed By: scotts

Differential Revision: D92550422
@meta-codesync

meta-codesync Bot commented Apr 14, 2026

Copy link
Copy Markdown

This pull request has been merged in 6d7f045.

ryanzhang22 added a commit to ryanzhang22/pytorch that referenced this pull request Apr 15, 2026
Includes the following commits:

- Remove RocprofActivity.h/RoctracerActivity.h from RocmActivityProfiler.h (pytorch/kineto#1357) 896068d
- Split ActivityProfilerController into Sync and Async Handlers (pytorch/kineto#1269) 6d7f045
- Add priority field to kernel metadata (pytorch/kineto#1361) f2a7423
- Add kineto-release skill (pytorch/kineto#1360) 675b6cd
ryanzhang22 added a commit to ryanzhang22/pytorch that referenced this pull request Apr 15, 2026
Includes the following commits:

- Stop allocating CUPTI buffers after exceeding max buffer count (pytorch/kineto#1362) 666f62c
- Add XPU workflow (pytorch/kineto#1302) 11cc1e0
- Remove RocprofActivity.h/RoctracerActivity.h from RocmActivityProfiler.h (pytorch/kineto#1357) 896068d
- Split ActivityProfilerController into Sync and Async Handlers (pytorch/kineto#1269) 6d7f045
- Add priority field to kernel metadata (pytorch/kineto#1361) f2a7423
- Add kineto-release skill (pytorch/kineto#1360) 675b6cd
scotts added a commit to scotts/pytorch that referenced this pull request Apr 16, 2026
Includes the following commits:

- Fix stream wait events referencing future correlation IDs (pytorch/kineto#1339) 23b5bb5
- Remove kineto tb_plugin directory entirely (pytorch/kineto#1368) 9497960
- Move Stream Sync events to a new row in JSON trace export (pytorch/kineto#1356) 041e7ce
- Expose isGpuCollectionStopped() through Kineto's public API (pytorch/kineto#1367) 17708f5
- Fix toggle test (pytorch/kineto#1369) ee2103c
- Link to correct fmt repo (pytorch/kineto#1345) 3447834
- Fix data race on CuptiActivityApi::externalCorrelationEnabled_ (pytorch/kineto#1365) 0e86499
- Stop allocating CUPTI buffers after exceeding max buffer count (pytorch/kineto#1362) 666f62c
- Add XPU workflow (pytorch/kineto#1302) 11cc1e0
- Remove RocprofActivity.h/RoctracerActivity.h from RocmActivityProfiler.h (pytorch/kineto#1357) 896068d
- Split ActivityProfilerController into Sync and Async Handlers (pytorch/kineto#1269) 6d7f045
- Add priority field to kernel metadata (pytorch/kineto#1361) f2a7423
- Add kineto-release skill (pytorch/kineto#1360) 675b6cd

Authored with Claude.
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Apr 17, 2026
Includes the following commits:

- Fix stream wait events referencing future correlation IDs (pytorch/kineto#1339) 23b5bb5
- Remove kineto tb_plugin directory entirely (pytorch/kineto#1368) 9497960
- Move Stream Sync events to a new row in JSON trace export (pytorch/kineto#1356) 041e7ce
- Expose isGpuCollectionStopped() through Kineto's public API (pytorch/kineto#1367) 17708f5
- Fix toggle test (pytorch/kineto#1369) ee2103c
- Link to correct fmt repo (pytorch/kineto#1345) 3447834
- Fix data race on CuptiActivityApi::externalCorrelationEnabled_ (pytorch/kineto#1365) 0e86499
- Stop allocating CUPTI buffers after exceeding max buffer count (pytorch/kineto#1362) 666f62c
- Add XPU workflow (pytorch/kineto#1302) 11cc1e0
- Remove RocprofActivity.h/RoctracerActivity.h from RocmActivityProfiler.h (pytorch/kineto#1357) 896068d
- Split ActivityProfilerController into Sync and Async Handlers (pytorch/kineto#1269) 6d7f045
- Add priority field to kernel metadata (pytorch/kineto#1361) f2a7423
- Add kineto-release skill (pytorch/kineto#1360) 675b6cd

Authored with Claude.
Pull Request resolved: #180606
Approved by: https://github.com/ryanzhang22, https://github.com/Skylion007
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
Includes the following commits:

- Fix stream wait events referencing future correlation IDs (pytorch/kineto#1339) 23b5bb5
- Remove kineto tb_plugin directory entirely (pytorch/kineto#1368) 9497960
- Move Stream Sync events to a new row in JSON trace export (pytorch/kineto#1356) 041e7ce
- Expose isGpuCollectionStopped() through Kineto's public API (pytorch/kineto#1367) 17708f5
- Fix toggle test (pytorch/kineto#1369) ee2103c
- Link to correct fmt repo (pytorch/kineto#1345) 3447834
- Fix data race on CuptiActivityApi::externalCorrelationEnabled_ (pytorch/kineto#1365) 0e86499
- Stop allocating CUPTI buffers after exceeding max buffer count (pytorch/kineto#1362) 666f62c
- Add XPU workflow (pytorch/kineto#1302) 11cc1e0
- Remove RocprofActivity.h/RoctracerActivity.h from RocmActivityProfiler.h (pytorch/kineto#1357) 896068d
- Split ActivityProfilerController into Sync and Async Handlers (pytorch/kineto#1269) 6d7f045
- Add priority field to kernel metadata (pytorch/kineto#1361) f2a7423
- Add kineto-release skill (pytorch/kineto#1360) 675b6cd

Authored with Claude.
Pull Request resolved: pytorch#180606
Approved by: https://github.com/ryanzhang22, https://github.com/Skylion007
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Includes the following commits:

- Fix stream wait events referencing future correlation IDs (pytorch/kineto#1339) 23b5bb5
- Remove kineto tb_plugin directory entirely (pytorch/kineto#1368) 9497960
- Move Stream Sync events to a new row in JSON trace export (pytorch/kineto#1356) 041e7ce
- Expose isGpuCollectionStopped() through Kineto's public API (pytorch/kineto#1367) 17708f5
- Fix toggle test (pytorch/kineto#1369) ee2103c
- Link to correct fmt repo (pytorch/kineto#1345) 3447834
- Fix data race on CuptiActivityApi::externalCorrelationEnabled_ (pytorch/kineto#1365) 0e86499
- Stop allocating CUPTI buffers after exceeding max buffer count (pytorch/kineto#1362) 666f62c
- Add XPU workflow (pytorch/kineto#1302) 11cc1e0
- Remove RocprofActivity.h/RoctracerActivity.h from RocmActivityProfiler.h (pytorch/kineto#1357) 896068d
- Split ActivityProfilerController into Sync and Async Handlers (pytorch/kineto#1269) 6d7f045
- Add priority field to kernel metadata (pytorch/kineto#1361) f2a7423
- Add kineto-release skill (pytorch/kineto#1360) 675b6cd

Authored with Claude.
Pull Request resolved: pytorch#180606
Approved by: https://github.com/ryanzhang22, https://github.com/Skylion007
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Includes the following commits:

- Fix stream wait events referencing future correlation IDs (pytorch/kineto#1339) 23b5bb5
- Remove kineto tb_plugin directory entirely (pytorch/kineto#1368) 9497960
- Move Stream Sync events to a new row in JSON trace export (pytorch/kineto#1356) 041e7ce
- Expose isGpuCollectionStopped() through Kineto's public API (pytorch/kineto#1367) 17708f5
- Fix toggle test (pytorch/kineto#1369) ee2103c
- Link to correct fmt repo (pytorch/kineto#1345) 3447834
- Fix data race on CuptiActivityApi::externalCorrelationEnabled_ (pytorch/kineto#1365) 0e86499
- Stop allocating CUPTI buffers after exceeding max buffer count (pytorch/kineto#1362) 666f62c
- Add XPU workflow (pytorch/kineto#1302) 11cc1e0
- Remove RocprofActivity.h/RoctracerActivity.h from RocmActivityProfiler.h (pytorch/kineto#1357) 896068d
- Split ActivityProfilerController into Sync and Async Handlers (pytorch/kineto#1269) 6d7f045
- Add priority field to kernel metadata (pytorch/kineto#1361) f2a7423
- Add kineto-release skill (pytorch/kineto#1360) 675b6cd

Authored with Claude.
Pull Request resolved: pytorch#180606
Approved by: https://github.com/ryanzhang22, https://github.com/Skylion007
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant