C++ WITH_FBSYSTRACE not working
Description
After adding macros in android.mk, it is still not possible to obtain trace information for c++
Steps to reproduce
1、add" LOCAL_CFLAGS += -DWITH_FBSYSTRACE LOCAL_CPPFLAGS += -DWITH_FBSYSTRACE" in Android.mk 2、build project 3、get trace
React Native Version
0.72.0
Affected Platforms
Runtime - Android
Output of npx react-native info
System:
OS: macOS 12.3
CPU: (10) arm64 Apple M1 Pro
Memory: 114.58 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 21.7.1 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.5.0 - /opt/homebrew/bin/npm
Watchman: 2024.03.25.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 33
Build Tools: 25.0.0, 26.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0
System Images: android-22 | ARM 64 v8a, android-23 | ARM 64 v8a, android-24 | ARM 64 v8a, android-24 | Intel x86 Atom, android-25 | ARM 64 v8a, android-26 | ARM 64 v8a, android-27 | ARM 64 v8a, android-28 | ARM 64 v8a, android-29 | ARM 64 v8a, android-30 | ARM 64 v8a, android-30 | Google APIs ARM 64 v8a, android-31 | ARM 64 v8a, android-31 | Google Play ARM 64 v8a, android-32 | Google Play ARM 64 v8a, android-33 | Google Play ARM 64 v8a
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 13.4/13F17a - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: ^7.0.3 => 7.0.4
react: 17.0.2 => 17.0.2
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Stacktrace or Logs
without stacktrace
Reproducer
https://github.com/facebook/react-native
Screenshots and Videos
without screenshot
| :warning: | Missing Reproducible Example |
|---|---|
| :information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
| :warning: | Newer Version of React Native is Available! |
|---|---|
| :information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.12. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
After adding macros in android.mk, it is still not possible to obtain trace information for c++
Are you also building from source? As the Android/C++ code is precompiled so your macro will have no effect.
https://reactnative.dev/contributing/how-to-build-from-source
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
This issue was closed because the author hasn't provided the requested feedback after 7 days.