技術問答
技術文章
iT 徵才
Tag
聊天室
2024 鐵人賽
登入/註冊
問答
文章
Tag
邦友
鐵人賽
搜尋
2017 iT 邦幫忙鐵人賽
DAY
11
0
自我挑戰組
iOS 筆記
系列 第
11
篇
檢查每個 function 跑了多久
2017鐵人賽
生蠔
2016-12-11 17:40:37
866 瀏覽
分享至
這個方法是在
這裡
看到的,可以設定讓跑超過幾秒的 function 跳出警告。
按以下步驟操作就可以了:
Navigate to your target in Xcode (not the project)
Click the “Build Settings” tab
Make sure that “All” settings are being shown, not “Basic”
Scroll to (or search for) “Other Swift Flags”
Add two flags: -Xfrontend and -warn-long-function-bodies=100, where 100 is the number of milliseconds you’d like the warning threshold to be
Compile your project
留言
追蹤
檢舉
上一篇
frame vs bounds 系列 part 2:什麼時候使用
下一篇
frame vs bounds 系列 part 3:bounds.origin 不是 (0,0) 的情況
系列文
iOS 筆記
共
30
篇
目錄
RSS系列文
訂閱系列文
6
人訂閱
26
什麼是 AppDelegate?part2
27
什麼是 AppDelegate ? Part3
28
UICollectionView
29
UICollectionView part2
30
iOS 筆記完結
完整目錄
直播研討會
{{ item.subject }}
{{ item.channelVendor }}
{{ item.webinarstarted }}
|
{{ formatDate(item.duration) }}
直播中
立即報名
尚未有邦友留言
立即登入留言
iThome鐵人賽
參賽組數
1064
組
團體組數
40
組
累計文章數
22195
篇
完賽人數
600
人
看影片追技術
看更多
{{ item.subject }}
{{ item.channelVendor }}
|
{{ formatDate(item.duration) }}
直播中
熱門tag
看更多
15th鐵人賽
16th鐵人賽
13th鐵人賽
14th鐵人賽
12th鐵人賽
11th鐵人賽
鐵人賽
2019鐵人賽
javascript
2018鐵人賽
python
2017鐵人賽
windows
php
c#
windows server
linux
css
react
vue.js
熱門問題
fortigate續約
家中獨有一台設備wifi會斷斷續續
Fortigate Let's encrypt憑證開啟http&https
兩端防火牆使用IPSEC互PING之問題
Windows7升級Windows10後網路功能異常
SAMBA加入到WINDOWS AD SERVER的網域後,無法使用CENTOS"本機"帳號進入SAMBA分享的資料夾
車用控制板推薦
python爬蟲 動態生成網頁104人力銀行
區域網路問題提問
HeidiSQL 查詢結果亂碼問題
熱門回答
Fortigate 50B 重置密碼
區域網路問題提問
HeidiSQL 查詢結果亂碼問題
家中獨有一台設備wifi會斷斷續續
vmware 虛擬機(windows)裡顯示使用容量與實際檔案容量不符合
熱門文章
每日一篇學習筆記 直到我做完專題 :( [Day28]
每日一篇學習筆記 直到我做完專題 :( [Day29]
每日一篇學習筆記 直到我做完專題 :( [Day30]
每日一篇學習筆記 直到我做完專題 :( [Day31]
每日一篇學習筆記 直到我做完專題 :( [Day32]
IT邦幫忙
×
標記使用者
輸入對方的帳號或暱稱
Loading
找不到結果。
標記
{{ result.label }}
{{ result.account }}