mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0f55ef7754
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50936 D63141469 introduced an option to use HSR Core's trace macros for profiling react. I believe this was to enable Tracy support. However, the consequence of this is that hsr core is statically linked twice into Worlds, once in libclient_server_android.so and once into libxplat_js_react-native-github_packages_react-native_ReactCxxPlatform_react_profiling_profiling.so. It isn't obvious that this causes any problems, but it does result in some weirdness with regard to symbol interposition between the two shared libraries. Some tracing categories are registered twice in hz_tracing, for example. Since the HSR Core macros call directly through to hz_tracing, this change simply replaces the HSR Core dependency with an equivalent hz_tracing dependency. Reviewed By: javache Differential Revision: D73532803 fbshipit-source-id: 56d4b62873aabcbf0a92cebd7a0f720fed616158