From 063bf35df41dce9830016656b41c72a06a1cc9cf Mon Sep 17 00:00:00 2001 From: Andrew McKnight Date: Fri, 12 Jan 2024 16:15:55 -0900 Subject: [PATCH 01/34] test: integration test for app launch profiling --- .../xcshareddata/xcschemes/iOS-Swift.xcscheme | 14 +- .../xcschemes/iOS-SwiftUITests.xcscheme | 2 +- Samples/iOS-Swift/iOS-Swift/AppDelegate.swift | 26 +- .../iOS-Swift/Base.lproj/Main.storyboard | 61 +++- .../Profiling/ProfilingViewController.swift | 97 ++++-- .../TransactionsViewController.swift | 37 +-- .../iOS-SwiftUITests/BaseUITest.swift | 32 +- .../iOS-SwiftUITests/ProfilingUITests.swift | 287 ++++++++++++++++-- Sentry.xcodeproj/project.pbxproj | 4 +- Sources/Sentry/SentryProfiler.mm | 67 +++- Sources/Sentry/SentryTracer.m | 5 + ...tProperties.h => SentryFileManager+Test.h} | 1 + .../SentryTests/SentryTests-Bridging-Header.h | 2 +- 13 files changed, 530 insertions(+), 105 deletions(-) rename Tests/SentryTests/Helper/{SentryFileManager+TestProperties.h => SentryFileManager+Test.h} (86%) diff --git a/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-Swift.xcscheme b/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-Swift.xcscheme index fa07f21b62..72e340ada0 100644 --- a/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-Swift.xcscheme +++ b/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-Swift.xcscheme @@ -23,7 +23,7 @@ @@ -73,6 +73,18 @@ argument = "--disable-file-io-tracing" isEnabled = "NO"> + + + + + + diff --git a/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-SwiftUITests.xcscheme b/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-SwiftUITests.xcscheme index 55e1974867..37a4ca1e81 100644 --- a/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-SwiftUITests.xcscheme +++ b/Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-SwiftUITests.xcscheme @@ -25,7 +25,7 @@ - + - + @@ -172,7 +172,7 @@ - + @@ -223,8 +223,57 @@ + + + + + + + + + + + + + + + - + - -