Slide 1

Slide 1 text

giginet/xcprofiler Λ ͍͡Γ౗͢ 2017.01.13 potatotips #36 @jpmarha_jp

Slide 2

Slide 2 text

try! Swift Tokyo 2017 ͷͪ΄Ͳ $50 off discount code Λ͓஌Βͤ͠·͢

Slide 3

Slide 3 text

giginet ͞Μ͕࡞ͬͨͷ ʹͳͥʁ

Slide 4

Slide 4 text

Twitter ʮ͓͒ͬɺ͡Ό͋ԕྀͳ͘ʂʯ

Slide 5

Slide 5 text

खॱ 1. Xcode Ͱ Other Swift Flags ʹ -Xfrontend -debug- time-function-bodies Λઃఆ 2. Xcode ͰϏϧυ 3. xcprofiler Λ࣮ߦ

Slide 6

Slide 6 text

ίϚϯυ $ xcprofiler Usage: xcprofiler [product name or .xcactivitylog file] [options] --[no-]show-invalids Show invalid location results -o [ORDER] Sort order -l, --limit [LIMIT] Limit for display --threshold [THRESHOLD] Threshold of time to display(ms) -h, --help Show this message

Slide 7

Slide 7 text

Demo

Slide 8

Slide 8 text

ϛεͬͨͷͰׂѪ ! +--------------------------------+------+-----------------------------------+----------+ | File | Line | Method name | Time(ms) | +--------------------------------+------+-----------------------------------+----------+ | Sssssssssssss.swift | 47 | @objc override func viewDidLoad() | 4072.2 | | Rrrrrrrrrrrrrrrrrrrrrrrr.swift | 78 | @objc override func viewDidLoad() | 1064.4 | | Tttttttt.swift | 83 | @objc override func viewDidLoad() | 651.4 | +--------------------------------+------+-----------------------------------+----------+

Slide 9

Slide 9 text

࢓૊Έ • DerivedData ͷ .xcactivitylog ϑΝΠϧ • ͨͩͦ͠ͷ··։͍ͯ΋ಡΊͳ͍ • ಡΊΔίϚϯυ͕͚͋ͬͨͲ๨Εͨ • ͪͳΈʹ Ruby ੡

Slide 10

Slide 10 text

͍͡Γ౗ͯ͠ Contribution

Slide 11

Slide 11 text

--threshold ௥Ճ • શ݅͡Ό͕͔͔࣌ؒΔ • ͋Δ࣌ؒʢmsʣҎ্ͷσʔλ͕΄͍͠ • ίϯτϦϏϡʔτνϟϯεʂ

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

·ͱΊ • Ϗϧυ͕஗͍ͷ͸Έͳ͞Μ͝ଘ஌ • ܕਪ࿦͕஗͍ͷ΋άάΕ͹Θ͔Δ • ͜ͷΑ͏ͳπʔϧͰΑΓ໌֬ʹͳΔ • ࣍ͷεςοϓ -> ͳͥ஗͍ͷ͔ίϯύΠϥΛݟͯΈΑ͏ʁʁ

Slide 14

Slide 14 text

Thanks! !