~/talk

Discover memory leaks with Testcase

TalkinJapaneseat try! Swift Tokyo 2019 · 2019-03-21..03-22· [testing, swift]

Describes an automated memory-leak detection technique for Swift using XCTest plus Mirror and weak-box wrappers: reflect an object’s stored properties, place any class instances into weak containers, and assert they become nil after the owning view controller is deallocated. Explains practical pitfalls such as casts through Any, Optional double-wrapping, and differences between structs and classes, and notes a limitation that Mirror itself can increase a reference count and produce false positives.

AI-written summary · about

  1. 0:00Introduction
  2. 1:53Memory leak causes
  3. 4:49Preventing leaks
  4. 7:19Leak detection with test cases
  5. 11:00Implementation challenges
  6. 18:20Summary and demo
  7. 20:16Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.