版本記錄
版本號 | 時間 |
---|---|
V1.0 | 2018.06.19 |
前言
我們在做app的時候,不是做完功能就結束了,很多時候是需要進行檢查和優化的,而xcode自帶了一個很好的檢查工具,可以檢測內存泄漏。還可以查看哪一個方法比較耗時。還可以檢測離屏渲染等等,隨后的幾篇我們就說一下這個工具的使用。感興趣的可以看這幾篇。
1.INSTRUMENTS調試工具的使用(一)
2.INSTRUMENTS調試工具的使用(二)
3.INSTRUMENTS調試工具的使用(三)
4.INSTRUMENTS調試工具的使用(四)
5.INSTRUMENTS調試工具的使用(五)
6.INSTRUMENTS調試工具的使用(六)
7.INSTRUMENTS調試工具的使用(七)
8.INSTRUMENTS調試工具的使用(八)
9.INSTRUMENTS調試工具的使用(九)
10. INSTRUMENTS調試工具的使用(十)
11. INSTRUMENTS調試工具的使用(十一) —— 簡介(一)
12. INSTRUMENTS調試工具的使用(十二) —— 通常任務之啟動Instruments(一)
13. INSTRUMENTS調試工具的使用(十三) —— 通常任務之簡單了解Instruments(二)
14. INSTRUMENTS調試工具的使用(十四) —— 通常任務之創建、保存和打開跟蹤文檔(三)
15. INSTRUMENTS調試工具的使用(十五) —— 通常任務之指定目標應用和設備(四)
16. INSTRUMENTS調試工具的使用(十六) —— 通常任務之訪問和使用個別儀器(五)
17. INSTRUMENTS調試工具的使用(十七) —— 通常任務之記錄、暫停和停止跟蹤(六)
18. INSTRUMENTS調試工具的使用(十八) —— 導航收集的數據之關于數據分析(一)
19. INSTRUMENTS調試工具的使用(十九) —— 導航收集的數據之導航時間軸窗格(二)
20. INSTRUMENTS調試工具的使用(二十) —— 導航收集的數據之導航詳細面板(三)
21. INSTRUMENTS調試工具的使用(二十一) —— 導航收集的數據之將數據映射到源代碼(四)
22. INSTRUMENTS調試工具的使用(二十二) —— 導航收集的數據之查看您應用的源代碼(五)
23. INSTRUMENTS調試工具的使用(二十三) —— 分析你App的性能之測量CPU使用情況(一)
24. INSTRUMENTS調試工具的使用(二十四) —— 分析你App的性能之測量圖形性能(二)
25. INSTRUMENTS調試工具的使用(二十五) —— 分析你App的性能之監視網絡和文件I / O(三)
26. INSTRUMENTS調試工具的使用(二十六) —— 分析你App的內存使用之關于內存分析(一)
27. INSTRUMENTS調試工具的使用(二十七) —— 分析你App的內存使用之檢測內存使用(二)
28. INSTRUMENTS調試工具的使用(二十八) —— 分析你App的內存使用之找到廢棄的內存(三)
29. INSTRUMENTS調試工具的使用(二十九) —— 分析你App的內存使用之找到內存泄露(四)
30. INSTRUMENTS調試工具的使用(三十) —— 分析你App的內存使用之找到僵尸對象(五)
31. INSTRUMENTS調試工具的使用(三十一) —— 分析你App的能源之測量能源影響(一)
32. INSTRUMENTS調試工具的使用(三十二) —— 高級任務之導出和導入跟蹤數據(一)
33. INSTRUMENTS調試工具的使用(三十三) —— 高級任務之創建自定義Instruments(二)
34. INSTRUMENTS調試工具的使用(三十四) —— 分析模板和工具之分析模板(一)
35. INSTRUMENTS調試工具的使用(三十五) —— 分析模板和工具之Activity Monitor工具(二)
36. INSTRUMENTS調試工具的使用(三十六) —— 分析模板和工具之Allocations工具(三)
37. INSTRUMENTS調試工具的使用(三十七) —— 分析模板和工具之藍牙開關日志工具(四)
38. INSTRUMENTS調試工具的使用(三十八) —— 分析模板和工具之Carbon Events工具(五)
39. INSTRUMENTS調試工具的使用(三十九) —— 分析模板和工具之Cocoa Events工具(六)
40. INSTRUMENTS調試工具的使用(四十) —— 分析模板和工具之Connections工具(七)
41. INSTRUMENTS調試工具的使用(四十一) —— 分析模板和工具之Core Animation工具(八)
42. INSTRUMENTS調試工具的使用(四十二) —— 分析模板和工具之Core Data Cache Misses工具(九)
43. INSTRUMENTS調試工具的使用(四十三) —— 分析模板和工具之Core Data Faults工具(十)
44. INSTRUMENTS調試工具的使用(四十四) —— 分析模板和工具之Core Data Fetches工具(十一)
45. INSTRUMENTS調試工具的使用(四十五) —— 分析模板和工具之Core Data Saves工具(十二)
46. INSTRUMENTS調試工具的使用(四十六) —— 分析模板和工具之Counters工具(十三)
47. INSTRUMENTS調試工具的使用(四十七) —— 分析模板和工具之CPU Activity Log工具(十四)
48. INSTRUMENTS調試工具的使用(四十八) —— 分析模板和工具之Directory I/O工具(十五)
Overview
Instrument Description | Supported Platforms | Related Profiling Templates |
---|---|---|
Dispatch 工具捕獲有關Grand Central Dispatch(GCD) 的信息,這是一種多核計算技術,用于在應用程序中同時處理異步任務。 它只能記錄來自單個進程的信息。 |
OS X |
N/A |
Timeline Pane - 時間線窗格
時間軸窗格根據工具Style
配置顯示信息:
Record Settings - 記錄設置
單擊檢查器窗格中的錄制設置按鈕以自定義以下錄制選項。
1. Sampling Period - 采樣周期
設置儀器對目標進行采樣的頻率。 使用滑塊或輸入一個值來指定所需的毫秒數。
2. Track Display Settings - 跟蹤顯示設置
這些設置控制信息在時間線窗格中的顯示方式
Setting | Description | Options |
---|---|---|
Style |
How information is presented |
1)Blocks Invoked: The total number of blocks of a specified type that are invoked during the specified time period. 2)Total Work Time: The total CPU time that a queue’s block consumed during the specified time period |
Type |
How multiple parameters in one track are displayed |
1)Stacked: Each statistic has its own graph 2)Overlay: All information is contained in one graph |
Display Settings - 顯示設置
單擊檢查器窗格中的顯示設置按鈕以自定義以下顯示設置。
1. Call Tree - 調用樹
以下調用樹顯示設置將在詳細信息窗格中篩選調用樹。
Setting | State |
---|---|
Separate by Queue |
Off by default |
Separate by Thread |
Off by default |
Invert Call Tree |
Off by default |
Hide System Libraries |
Off by default |
Flatten Recursion |
Off by default |
2. Call Tree Constraints - 調用樹限制
根據以下設置,以下選項可過濾調用樹以顯示屬于特定閾值的調用。
Setting | State |
---|---|
# Calls |
Off by default |
3. Data Mining - 數據挖掘
允許您通過收集的數據篩選特定的符號和庫
Detail Pane Columns - 詳細面板列
1. Queues Detail Type - 隊列詳細類型
詳細信息窗格中提供以下隊列列
Column name | Definition |
---|---|
# |
The sequence number |
Graph |
Plot of the statistics from this queue in the track pane |
Queue Name |
The name of the queue |
Pointer |
The memory address of the queue |
Conc |
Indicates if the queue is active |
Live |
The sequence number |
# Blocks |
The number of blocks currently enqueued, but not invoked |
# Sync |
The number of blocks that have been dispatched synchronously |
Total Processed |
The total number of blocks executed |
Latency (ms) |
The average difference between the invoke time and the enqueue time in milliseconds |
Total CPU Time (ms) |
The total time in milliseconds that the specified queue’s blocks have been executing on the CPU |
2. Call Tree Detail Type - 調用樹詳細類型
以下調用樹列在詳細信息窗格中可用
Column name | Definition |
---|---|
# Self |
The number of times the symbol has been called |
% Calls |
The percentage of total calls involving the symbol name |
# Calls |
The number of calls involving the symbol name |
% of Parent |
The percentage of bytes used by the call’s parent |
Source Path |
The path to the source file that generated the call |
Category |
An icon representing the category of the call |
Library |
The name of the library that generated the call |
Symbol Name |
The name of the symbol being called |
3. Blocks Detail Type - Blocks詳細類型
以下block列在詳細信息窗格中可用
Column name | Definition |
---|---|
# |
The sequence number |
Graph |
Plot of the statistics from this queue in the track pane |
Block Name |
The name assigned to this block by the compiler |
Block Library |
The framework or bundle in which the block has been declared |
Total Work Time |
The total execution time for all invocations of this block in microseconds |
Average Work Time |
The average execution time for this block in microseconds |
Count |
Th The number of invocations of this block |
后記
本篇主要講述了
Dispatch
工具,感興趣的給個贊或者關注~~~~