Files
App/patches/@sentry+react-native+6.17.0.patch
Ritesh Shukla a6b575c998 React native upgrade to 0.81 (#472)
React Native and dependency upgrades
2025-08-14 06:30:10 -05:00

27 lines
1.3 KiB
Diff

diff --git a/node_modules/@sentry/react-native/ios/RNSentry.mm b/node_modules/@sentry/react-native/ios/RNSentry.mm
index 267c41c..b731bad 100644
--- a/node_modules/@sentry/react-native/ios/RNSentry.mm
+++ b/node_modules/@sentry/react-native/ios/RNSentry.mm
@@ -819,7 +819,7 @@ + (SentryUser *_Nullable)userFrom:(NSDictionary *)userKeys
{
#if SENTRY_PROFILING_ENABLED
try {
- facebook::hermes::HermesRuntime::enableSamplingProfiler();
+// facebook::hermes::HermesRuntime::enableSamplingProfiler();
if (nativeProfileTraceId == nil && nativeProfileStartTime == 0 && platformProfilers) {
# if SENTRY_TARGET_PROFILING_SUPPORTED
nativeProfileTraceId = [RNSentryId newId];
@@ -879,10 +879,10 @@ + (SentryUser *_Nullable)userFrom:(NSDictionary *)userKeys
nativeProfileTraceId = nil;
nativeProfileStartTime = 0;
- facebook::hermes::HermesRuntime::disableSamplingProfiler();
+// facebook::hermes::HermesRuntime::;
std::stringstream ss;
// Before RN 0.69 Hermes used llvh::raw_ostream (profiling is supported for 0.69 and newer)
- facebook::hermes::HermesRuntime::dumpSampledTraceToStream(ss);
+// facebook::hermes::HermesRuntime::dumpSampledTraceToStream(ss);
std::string s = ss.str();
NSString *data = [NSString stringWithCString:s.c_str()