File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Samples/iOS-Swift/iOS-Swift-UITests Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,14 @@ extension ProfilingUITests {
165165
166166 switch profileType {
167167 case . ui:
168+ app. launchEnvironment [ " --io.sentry.profile-session-sample-rate " ] = " 1 "
168169 switch lifecycle {
169170 case . none:
170171 fatalError ( " Misconfigured test case. Must provide a lifecycle for UI profiling. " )
171172 case . trace:
172- app . launchEnvironment [ " --io.sentry.profile-session-sample-rate " ] = " 1 "
173+ break
173174 case . manual:
174175 app. launchArguments. append ( " --io.sentry.profile-lifecycle-manual " )
175- app. launchEnvironment [ " --io.sentry.profile-session-sample-rate " ] = " 1 "
176176 }
177177 case . continuous:
178178 app. launchArguments. append ( " --io.sentry.disable-ui-profiling " )
Original file line number Diff line number Diff line change 153153 return (SentryLaunchProfileConfig) { NO , nil , nil };
154154 }
155155
156- SENTRY_LOG_DEBUG (@" Continuous profiling v2 conditions satisfied, will profile launch." );
156+ SENTRY_LOG_DEBUG (
157+ @" Continuous profiling v2 manual lifecycle conditions satisfied, will profile launch." );
157158 return (SentryLaunchProfileConfig) { YES , nil , profileSampleDecision };
158159}
159160
164165 return sentry_launchShouldHaveContinuousProfilingV2 (options);
165166 }
166167
167- if ([options isContinuousProfilingEnabled ] && options.enableAppLaunchProfiling ) {
168- return (SentryLaunchProfileConfig) { YES , nil , nil };
169- }
170-
171168 if ([options isContinuousProfilingEnabled ]) {
172- return (SentryLaunchProfileConfig) { NO , nil , nil };
169+ return (SentryLaunchProfileConfig) { options. enableAppLaunchProfiling , nil , nil };
173170 }
174171
175172 return sentry_launchShouldHaveTransactionProfiling (options);
Original file line number Diff line number Diff line change @@ -858,6 +858,7 @@ - (BOOL)isDirectory:(NSString *)path
858858writeAppLaunchProfilingConfigFile (NSMutableDictionary <NSString *, NSNumber *> *config)
859859{
860860 NSError *error;
861+ SENTRY_LOG_DEBUG (@" Writing launch profiling config file." );
861862 SENTRY_CASSERT ([config writeToURL: launchProfileConfigFileURL () error: &error],
862863 @" Failed to write launch profile config file: %@ ." , error);
863864}
You can’t perform that action at this time.
0 commit comments