Skip to content

Commit

Permalink
Merge branch 'armcknight/feat/3555-continuous-profiling/5-implementat…
Browse files Browse the repository at this point in the history
…ion/3-automatic-start-stop' into armcknight/feat/3555-continuous-profiling/5-implementation/4-launch-profiling
  • Loading branch information
armcknight committed May 14, 2024
2 parents 48959ff + d0c8e78 commit 8a829a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions SentryTestUtils/ClearTestState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class TestCleanup: NSObject {
#if os(iOS) || os(macOS) || targetEnvironment(macCatalyst)
SentryLegacyProfiler.getCurrentProfiler()?.stop(for: SentryProfilerTruncationReason.normal)
SentryLegacyProfiler.resetConcurrencyTracking()
SentryContinuousProfiler.stop()
#endif // os(iOS) || os(macOS) || targetEnvironment(macCatalyst)

#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
Expand Down
1 change: 1 addition & 0 deletions SentryTestUtils/SentryTestUtils-ObjC-BridgingHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "SentryProfilingConditionals.h"

#if SENTRY_TARGET_PROFILING_SUPPORTED
# import "SentryContinuousProfiler.h"
# import "SentryLegacyProfiler+Test.h"
# import "SentryProfiler+Private.h"
#endif // SENTRY_TARGET_PROFILING_SUPPORTED
Expand Down
5 changes: 0 additions & 5 deletions Tests/SentryProfilerTests/SentryContinuousProfilerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ final class SentryContinuousProfilerTests: XCTestCase {
clearTestState()
}

override func tearDown() {
super.tearDown()
SentryContinuousProfiler.stop()
}

func testStartingAndStoppingContinuousProfiler() throws {
try performContinuousProfilingTest()
}
Expand Down

0 comments on commit 8a829a6

Please sign in to comment.