Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Save json files with UIViewController memory leak name#98

Merged
bartszczepaniak merged 2 commits intomasterfrom
experiment-saving-vc-memory-leaks-into-json-files
Feb 22, 2024
Merged

Save json files with UIViewController memory leak name#98
bartszczepaniak merged 2 commits intomasterfrom
experiment-saving-vc-memory-leaks-into-json-files

Conversation

@bartszczepaniak
Copy link
Collaborator

Storing memory leak UIViewController name each time we encounter one.
This can be extracted from /tmp/presentation-memory-leaks/ directory.

Storing memory leak `UIViewController` name each time we encounter one.
This can be extracted from `/tmp/presentation-memory-leaks/` directory.
@bartszczepaniak bartszczepaniak force-pushed the experiment-saving-vc-memory-leaks-into-json-files branch from 13be9ad to 7a3a72e Compare February 21, 2024 15:12

func onLeak() {
log(.didLeak(.init(vcPresentationDescription), from: .init(presentationDescription)))
let memoryLeak = UIVCMemoryLeak(name: self.presentationTitle)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So as I understand we store the title of controller where the leak had occurred. But how we going to use that data?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we got stored files with names of view controllers after running UI tests we can process it at the end on CI.

@bartszczepaniak bartszczepaniak merged commit 83608f2 into master Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants