-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save the thread ID in SamplingProfiler
Summary: The sampling profiler currently records the thread ID during stack walking. This works fine on POSIX platforms because the signal handler actually runs on the runtime thread, but causes problems on Windows, where it occurs on the timer thread. To fix this, record the thread ID when the runtime is registered for a particular thread, and just use that when walking the stack. Reviewed By: rozele Differential Revision: D69664487 fbshipit-source-id: d6d1d46729709505a563efbd498f9bc253ba2ef8
- Loading branch information
1 parent
945c9f8
commit bb18a56
Showing
4 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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