Skip to content

Commit e998fd0

Browse files
authored
feat(internal): change collectProfilerForTrace result to mutable (#3473)
1 parent 2a894d5 commit e998fd0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/Sentry/PrivateSentrySDKOnly.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ + (uint64_t)startProfilerForTrace:(SentryId *)traceId;
129129
return SentryDependencyContainer.sharedInstance.dateProvider.systemTime;
130130
}
131131

132-
+ (nullable NSDictionary<NSString *, id> *)collectProfileBetween:(uint64_t)startSystemTime
133-
and:(uint64_t)endSystemTime
134-
forTrace:(SentryId *)traceId;
132+
+ (nullable NSMutableDictionary<NSString *, id> *)collectProfileBetween:(uint64_t)startSystemTime
133+
and:(uint64_t)endSystemTime
134+
forTrace:(SentryId *)traceId;
135135
{
136136
NSMutableDictionary<NSString *, id> *payload =
137137
[SentryProfiler collectProfileBetween:startSystemTime

Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ typedef void (^SentryOnAppStartMeasurementAvailable)(
9191
* Collect a profiler session data associated with the given @c SentryId.
9292
* This also discards the profiler.
9393
*/
94-
+ (nullable NSDictionary<NSString *, id> *)collectProfileBetween:(uint64_t)startSystemTime
95-
and:(uint64_t)endSystemTime
96-
forTrace:(SentryId *)traceId;
94+
+ (nullable NSMutableDictionary<NSString *, id> *)collectProfileBetween:(uint64_t)startSystemTime
95+
and:(uint64_t)endSystemTime
96+
forTrace:(SentryId *)traceId;
9797

9898
/**
9999
* Discard profiler session data associated with the given @c SentryId.

0 commit comments

Comments
 (0)