Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Apr 18, 2024
1 parent d53898d commit 99b951f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Sources/Sentry/Profiling/SentryLaunchProfiling.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

# pragma mark - Private

BOOL sentry_isTracingAppLaunch;
static SentryTracer *_Nullable sentry_launchTracer;

SentryTracerConfiguration *
Expand Down
3 changes: 2 additions & 1 deletion Sources/Sentry/include/SentryLaunchProfiling.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#if SENTRY_TARGET_PROFILING_SUPPORTED

# import "SentryDefines.h"
# import <Foundation/Foundation.h>

@class SentryHub;
Expand All @@ -12,7 +13,7 @@

NS_ASSUME_NONNULL_BEGIN

BOOL sentry_isTracingAppLaunch;
SENTRY_EXTERN BOOL sentry_isTracingAppLaunch;

/** Try to start a profiled trace for this app launch, if the configuration allows. */
void sentry_startLaunchProfile(void);
Expand Down
6 changes: 4 additions & 2 deletions Tests/SentryTests/SentryLaunchProfiling+Tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#if SENTRY_TARGET_PROFILING_SUPPORTED

# import "SentryDefines.h"

@class SentrySamplerDecision;
@class SentryOptions;

Expand All @@ -15,8 +17,8 @@ typedef struct {

SentryLaunchProfileConfig sentry_shouldProfileNextLaunch(SentryOptions *options);

NSString *const kSentryLaunchProfileConfigKeyTracesSampleRate;
NSString *const kSentryLaunchProfileConfigKeyProfilesSampleRate;
SENTRY_EXTERN NSString *const kSentryLaunchProfileConfigKeyTracesSampleRate;
SENTRY_EXTERN NSString *const kSentryLaunchProfileConfigKeyProfilesSampleRate;

SentryTransactionContext *sentry_context(NSNumber *tracesRate);

Expand Down

0 comments on commit 99b951f

Please sign in to comment.