getsentry / getsentry/sentry-cocoa

Benchmark memory footprint during tests

Open
#2,950 2 comments 1 reaction 0 assignees View on GitHub
Cocoa Tests
Dominant language
Swift
Stars
1.1k
Forks
418
Avg merge
2d 3h
Merged PRs (30d)
106

Description

### Description

Use [`SentrySystemWrapper.memoryFootprintBytes`](https://github.com/getsentry/sentry-cocoa/blob/2405ba598c9bae766901b68fd3cf1a9c5dca97af/Sources/Sentry/SentrySystemWrapper.mm#L7) to benchmark the memory footprint similar to what we do to [benchmark the CPU overhead ](https://github.com/getsentry/sentry-cocoa/blob/2405ba598c9bae766901b68fd3cf1a9c5dca97af/.github/workflows/benchmarking.yml#L77-L80). That approach notifies us about potential memory leaks anywhere in the SDK.

### Option discarded

[FBRetainCycleDetector](https://github.com/facebook/FBRetainCycleDetector) doesn't seem like a good option, as the last release for it was on November 2017, and we have to specify which objects we think could have retain cycles.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.