Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Jun 27, 2023
1 parent 010bd05 commit cca9220
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryProfiler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ + (void)useDispatchFactory:(SentryDispatchFactory *)dispatchFactory
_gDispatchFactory = dispatchFactory;
}

+ (void)useTimeoutTimerWrapper:(SentryNSTimerFactory *)timerWrapper
+ (void)useTimeoutTimerFactory:(SentryNSTimerFactory *)timerWrapper
{
std::lock_guard<std::mutex> l(_gProfilerLock);
_gTimeoutTimerFactory = timerWrapper;
Expand Down
2 changes: 1 addition & 1 deletion Tests/SentryProfilerTests/SentryProfilerSwiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class SentryProfilerSwiftTests: XCTestCase {
self.metricTimerWrapper = eventHandler
}
SentryProfiler.useDispatchFactory(dispatchFactory)
SentryProfiler.useTimeoutTimerWrapper(timeoutTimerWrapper)
SentryProfiler.useTimeoutTimerFactory(timeoutTimerFactory)

systemWrapper.overrides.cpuUsagePerCore = mockCPUUsages.map { NSNumber(value: $0) }
processInfoWrapper.overrides.processorCount = UInt(mockCPUUsages.count)
Expand Down
4 changes: 2 additions & 2 deletions Tests/SentryTests/Helper/SentryProfiler+SwiftTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ SentryProfiler ()
+ (void)useDispatchFactory:(SentryDispatchFactory *)dispatchFactory
NS_SWIFT_NAME(useDispatchFactory(_:));

+ (void)useTimeoutTimerWrapper:(SentryNSTimerFactory *)timerWrapper
NS_SWIFT_NAME(useTimeoutTimerWrapper(_:));
+ (void)useTimeoutTimerFactory:(SentryNSTimerFactory *)timerWrapper
NS_SWIFT_NAME(useTimeoutTimerFactory(_:));

@end

Expand Down
2 changes: 1 addition & 1 deletion Tests/SentryTests/SentryTests-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
#import "SentryPerformanceTracker.h"
#import "SentryPerformanceTrackingIntegration.h"
#import "SentryPredicateDescriptor.h"
#import "SentryProfiler.h"
#import "SentryProfiler+SwiftTest.h"
#import "SentryQueueableRequestManager.h"
#import "SentryRandom.h"
#import "SentryRateLimitParser.h"
Expand Down

0 comments on commit cca9220

Please sign in to comment.