forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This is a follow-up to the previous diff(D37889426). Diff 1: we change the plumbing to pass a pointer to the SamplingProfiler in the callback, so that when we collect the stack trace we know which profiler to collect from. Diff 2: code clean up to make more code shared between Android and Apple platforms, for the collectStackForLoom() function. Diff 3: Notify loom when the SamplingProfiler is destroyed, such that it should no longer use the dangling pointer. Diff 4: Move the enableForLoomCollection() to the point when loom starts, and move the disableForLoomCollection() to the point when loom ends. Add APIs only, these APIs are not used yet in this diff. Diff5: Split SamplingProfiler::GlobalProfiler::sampleStacks() into two function, the added function does the work of one iteration in sampleStacks(). Diff6: Use the newly added APIs in Diff 4. Reviewed By: jpporto Differential Revision: D38745848 fbshipit-source-id: 771a95da1f0d04b21cad365ca8fb63336e53dfb4
- Loading branch information
1 parent
e0d8d45
commit 71bb5ee
Showing
2 changed files
with
54 additions
and
54 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