Upgrade to Pro — share decks privately, control downloads, hide ads and more …

giginet/xcprofiler をいじり倒す

giginet/xcprofiler をいじり倒す

potatotips #36 @ MoneyForward
https://github.com/giginet/xcprofiler

Satoshi Hachiya

January 13, 2017
Tweet

More Decks by Satoshi Hachiya

Other Decks in Programming

Transcript

  1. खॱ 1. Xcode Ͱ Other Swift Flags ʹ -Xfrontend -debug-

    time-function-bodies Λઃఆ 2. Xcode ͰϏϧυ 3. xcprofiler Λ࣮ߦ
  2. ίϚϯυ $ 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
  3. ϛεͬͨͷͰׂѪ ! +--------------------------------+------+-----------------------------------+----------+ | 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 | +--------------------------------+------+-----------------------------------+----------+