Skip to content

Commit

Permalink
fix remaining failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed May 3, 2024
1 parent 328e105 commit c819702
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryProfiler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ - (void)stopForReason:(SentryProfilerTruncationReason)reason

- (void)startMetricProfiler
{
self.metricProfiler = [[SentryMetricProfiler alloc] init];
self.metricProfiler = [[SentryMetricProfiler alloc] initWithMode:_mode];
[self.metricProfiler start];
}

Expand Down
4 changes: 4 additions & 0 deletions Sources/Sentry/include/SentryMetricProfiler.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 "SentryProfilerDefines.h"
# import <Foundation/Foundation.h>

Expand All @@ -15,6 +16,9 @@ NS_ASSUME_NONNULL_BEGIN
*/
@interface SentryMetricProfiler : NSObject

- (instancetype)initWithMode:(SentryProfilerMode)mode;
SENTRY_NO_INIT

- (void)start;
/** Record a metrics sample. Helps ensure full metric coverage for concurrent spans. */
- (void)recordMetrics;
Expand Down

0 comments on commit c819702

Please sign in to comment.