Using Xcode (or Instruments), is there a way to know all the functions/symbols that are touched by a line of code?
struct Test {
private func intro() {
}
func partOne() {
intro()
}
func partTwo() {
partOne()
}
func partThree() {
partTwo()
print(credits)
}
private var credits: String {
""
}
}
let test = Test()
test.partTwo() // partTwo, partOne, intro
test.partThree() // partThree, partTwo, partOne, intro, credits