From 7cd187e14077985af950532a51b9aee43b1a9f87 Mon Sep 17 00:00:00 2001 From: Andrew McKnight Date: Tue, 27 Jun 2023 13:46:26 -0800 Subject: [PATCH] ref: rename SentryProfiler+Private.h to SentryProfilerState.h (#3124) --- Sentry.xcodeproj/project.pbxproj | 8 ++++---- Sources/Sentry/SentryProfiler.mm | 2 +- Sources/Sentry/include/SentryProfiler+Test.h | 1 - .../{SentryProfiler+Private.h => SentryProfilerState.h} | 0 Tests/SentryProfilerTests/SentryProfilerTests.mm | 1 + 5 files changed, 6 insertions(+), 6 deletions(-) rename Sources/Sentry/include/{SentryProfiler+Private.h => SentryProfilerState.h} (100%) diff --git a/Sentry.xcodeproj/project.pbxproj b/Sentry.xcodeproj/project.pbxproj index a9dd755ea4d..dab18d0dd8a 100644 --- a/Sentry.xcodeproj/project.pbxproj +++ b/Sentry.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - 0354A22B2A134D9C003C3A04 /* SentryProfiler+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 0354A22A2A134D9C003C3A04 /* SentryProfiler+Private.h */; }; + 0354A22B2A134D9C003C3A04 /* SentryProfilerState.h in Headers */ = {isa = PBXBuildFile; fileRef = 0354A22A2A134D9C003C3A04 /* SentryProfilerState.h */; }; 0356A570288B4612008BF593 /* SentryProfilesSampler.h in Headers */ = {isa = PBXBuildFile; fileRef = 0356A56E288B4612008BF593 /* SentryProfilesSampler.h */; }; 0356A571288B4612008BF593 /* SentryProfilesSampler.m in Sources */ = {isa = PBXBuildFile; fileRef = 0356A56F288B4612008BF593 /* SentryProfilesSampler.m */; }; 03BCC38A27E1BF49003232C7 /* SentryTime.h in Headers */ = {isa = PBXBuildFile; fileRef = 03BCC38927E1BF49003232C7 /* SentryTime.h */; }; @@ -873,7 +873,7 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 0354A22A2A134D9C003C3A04 /* SentryProfiler+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "SentryProfiler+Private.h"; path = "Sources/Sentry/include/SentryProfiler+Private.h"; sourceTree = SOURCE_ROOT; }; + 0354A22A2A134D9C003C3A04 /* SentryProfilerState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryProfilerState.h; path = Sources/Sentry/include/SentryProfilerState.h; sourceTree = SOURCE_ROOT; }; 0356A56E288B4612008BF593 /* SentryProfilesSampler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryProfilesSampler.h; path = Sources/Sentry/include/SentryProfilesSampler.h; sourceTree = SOURCE_ROOT; }; 0356A56F288B4612008BF593 /* SentryProfilesSampler.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = SentryProfilesSampler.m; path = Sources/Sentry/SentryProfilesSampler.m; sourceTree = SOURCE_ROOT; }; 035E73C727D56757005EEB11 /* SentryBacktraceTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = SentryBacktraceTests.mm; sourceTree = ""; }; @@ -3098,7 +3098,7 @@ 03F84D1127DD414C008FE43F /* SentryProfiler.h */, 844EDD6B2949387000C86F34 /* SentryMetricProfiler.h */, 8454CF8B293EAF9A006AC140 /* SentryMetricProfiler.mm */, - 0354A22A2A134D9C003C3A04 /* SentryProfiler+Private.h */, + 0354A22A2A134D9C003C3A04 /* SentryProfilerState.h */, 84A888FC28D9B11700C51DFD /* SentryProfiler+Test.h */, 03F84D2B27DD4191008FE43F /* SentryProfiler.mm */, 03BCC38D27E2A377003232C7 /* SentryProfilingConditionals.h */, @@ -3574,7 +3574,7 @@ 7BC8522F24581096005A70F0 /* SentryFileContents.h in Headers */, 7B30B67C26527886006B2752 /* SentryDisplayLinkWrapper.h in Headers */, 7BD86ECF264A7C77005439DB /* SentryAppStartMeasurement.h in Headers */, - 0354A22B2A134D9C003C3A04 /* SentryProfiler+Private.h in Headers */, + 0354A22B2A134D9C003C3A04 /* SentryProfilerState.h in Headers */, 7DC8310A2398283C0043DD9A /* SentryCrashIntegration.h in Headers */, 63FE718320DA4C1100CDBAE8 /* SentryCrashReportFixer.h in Headers */, 03F84D2027DD414C008FE43F /* SentryStackBounds.hpp in Headers */, diff --git a/Sources/Sentry/SentryProfiler.mm b/Sources/Sentry/SentryProfiler.mm index 8c22a331dbc..abd8cdecb6b 100644 --- a/Sources/Sentry/SentryProfiler.mm +++ b/Sources/Sentry/SentryProfiler.mm @@ -1,5 +1,5 @@ -#import "SentryProfiler+Private.h" #import "SentryProfiler+Test.h" +#import "SentryProfilerState.h" #if SENTRY_TARGET_PROFILING_SUPPORTED # import "NSDate+SentryExtras.h" diff --git a/Sources/Sentry/include/SentryProfiler+Test.h b/Sources/Sentry/include/SentryProfiler+Test.h index e59001c84d5..a063e41c09b 100644 --- a/Sources/Sentry/include/SentryProfiler+Test.h +++ b/Sources/Sentry/include/SentryProfiler+Test.h @@ -1,5 +1,4 @@ #include "SentryBacktrace.hpp" -#import "SentryProfiler+Private.h" #import "SentryProfiler.h" #import "SentryProfilingConditionals.h" diff --git a/Sources/Sentry/include/SentryProfiler+Private.h b/Sources/Sentry/include/SentryProfilerState.h similarity index 100% rename from Sources/Sentry/include/SentryProfiler+Private.h rename to Sources/Sentry/include/SentryProfilerState.h diff --git a/Tests/SentryProfilerTests/SentryProfilerTests.mm b/Tests/SentryProfilerTests/SentryProfilerTests.mm index ed8419e7aff..2cc4005e3d5 100644 --- a/Tests/SentryProfilerTests/SentryProfilerTests.mm +++ b/Tests/SentryProfilerTests/SentryProfilerTests.mm @@ -3,6 +3,7 @@ #import "SentryId.h" #import "SentryProfileTimeseries.h" #import "SentryProfiler+Test.h" +#import "SentryProfilerState.h" #import "SentryProfilingConditionals.h" #import "SentryThread.h" #import "SentryTransaction.h"