Skip to content
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

Update sampling profiler thread #1421

Closed
wants to merge 1 commit into from
Closed

Update sampling profiler thread #1421

wants to merge 1 commit into from

Conversation

mattbfb
Copy link
Contributor

@mattbfb mattbfb commented Jun 5, 2024

Summary:
Allow repeated calls to enable the sampling profiler,
updating the thread targeted by the profiler each time.

Previously, the sampling profiler would target only a
single thread. If the runtime was used from another
thread, multiple threads would be trying to use the
runtime in parallel, causing incorrect behavior.

Reviewed By: avp

Differential Revision: D57397716

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 5, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57397716

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57397716

2 similar comments
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57397716

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57397716

Summary:

Allow repeated calls to enable the sampling profiler,
updating the thread targeted by the profiler each time.

Previously, the sampling profiler would target only a
single thread. If the runtime was used from another
thread, multiple threads would be trying to use the
runtime in parallel, causing incorrect behavior.

Reviewed By: avp

Differential Revision: D57397716
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57397716

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8991646.

facebook-github-bot pushed a commit that referenced this pull request Jun 18, 2024
Summary:
Original Author: [email protected]
Original Git: 8991646
Original Reviewed By: avp
Original Revision: D57397716

Pull Request resolved: #1421

Allow repeated calls to enable the sampling profiler,
updating the thread targeted by the profiler each time.

Previously, the sampling profiler would target only a
single thread. If the runtime was used from another
thread, multiple threads would be trying to use the
runtime in parallel, causing incorrect behavior.

Reviewed By: neildhar

Differential Revision: D58706799

fbshipit-source-id: 3171b2774dba055f9a8f3c3ee44535f9d56e03b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants