Runtime performance / extended

CodexBar性能数据报告

采集完成2026-09-14T13:00:00+08:00
记录时间
30.1min
各阶段累计
平均 CPU
0.27%
按观测时长加权
footprint 峰值
161.6MiB
有效阶段最大值
Hangs 记录
0
覆盖 5 个阶段
CPU 采样峰值
12.22%
有效阶段最高采样值
RSS 峰值
221.6MiB
驻留物理内存
线程峰值
10
有效阶段最大线程数
资源采样点
1,723
有效阶段累计样本

阶段指标矩阵

FP = Footprint · N/A = 无数据 · CPU 100% = 1 个逻辑核心
阶段 CPU 均值 % P50 % P95 % 峰值 % FP 峰值 MiB RSS 峰值 MiB 线程峰值 唤醒 /s 写入 KiB 状态
cpu-1 0.19 0.04 0.07 11.85 160.2 221.4 8 1.30 188.0 有效
cpu-2 0.29 0.05 0.13 12.01 160.3 221.5 10 1.26 376.0 有效
cpu-3 0.30 0.06 0.14 11.91 160.3 221.5 9 1.57 376.0 有效
cpu-4 0.29 0.05 0.13 11.78 160.4 221.6 8 1.55 376.0 有效
cpu-5 0.27 0.05 0.92 6.53 160.4 221.6 8 1.50 376.0 有效
soak 0.27 0.05 0.09 12.22 161.3 221.1 9 1.36 2,632.0 有效
settle 0.29 0.05 0.18 11.90 161.6 221.4 9 1.37 940.0 有效
02 / COMPARISON

阶段对比

CPU 100% = 1 个逻辑核心

平均 CPU

cpu-1
均值
0.19 %
cpu-2
均值
0.29 %
cpu-3
均值
0.30 %
cpu-4
均值
0.29 %
cpu-5
均值
0.27 %
soak
均值
0.27 %
settle
均值
0.29 %

CPU P95 与峰值

cpu-1
P95
0.07 %
峰值
11.85 %
cpu-2
P95
0.13 %
峰值
12.01 %
cpu-3
P95
0.14 %
峰值
11.91 %
cpu-4
P95
0.13 %
峰值
11.78 %
cpu-5
P95
0.92 %
峰值
6.53 %
soak
P95
0.09 %
峰值
12.22 %
settle
P95
0.18 %
峰值
11.90 %

内存 footprint 分布

0200 MiB
cpu-1
最小 160.2 · 中位 160.2 · 峰值 160.2 MiB
cpu-2
最小 160.2 · 中位 160.2 · 峰值 160.3 MiB
cpu-3
最小 160.2 · 中位 160.2 · 峰值 160.3 MiB
cpu-4
最小 160.2 · 中位 160.3 · 峰值 160.4 MiB
cpu-5
最小 160.3 · 中位 160.3 · 峰值 160.4 MiB
soak
最小 160.3 · 中位 160.9 · 峰值 161.3 MiB
settle
最小 161.3 · 中位 161.5 · 峰值 161.6 MiB
┃ 最小值 / 峰值 ● 中位数

footprint 首尾变化

窗口长度为 60 秒与阶段跨度四分之一中的较小值

0200 MiB
cpu-1
首段 160.2 → 尾段 160.2 MiB · 变化 -0.0 MiB
cpu-2
首段 160.2 → 尾段 160.2 MiB · 变化 -0.0 MiB
cpu-3
首段 160.2 → 尾段 160.3 MiB · 变化 +0.1 MiB
cpu-4
首段 160.2 → 尾段 160.3 MiB · 变化 +0.1 MiB
cpu-5
首段 160.3 → 尾段 160.4 MiB · 变化 +0.0 MiB
soak
首段 160.4 → 尾段 161.3 MiB · 变化 +0.9 MiB
settle
首段 161.4 → 尾段 161.5 MiB · 变化 +0.1 MiB
○ 首段 ● 尾段

footprint 变化斜率

按阶段样本作最小二乘拟合

cpu-1
-0.03 MiB/min
cpu-2
0.01 MiB/min
cpu-3
0.04 MiB/min
cpu-4
0.02 MiB/min
cpu-5
0.03 MiB/min
soak
0.07 MiB/min
settle
0.05 MiB/min

footprint 首尾差值

尾段窗口中位数减去首段窗口中位数

cpu-1
-0.05 MiB
cpu-2
-0.03 MiB
cpu-3
0.09 MiB
cpu-4
0.06 MiB
cpu-5
0.05 MiB
soak
0.94 MiB
settle
0.14 MiB
03 / RESOURCES

唤醒、磁盘与系统负载

Idle Wake Ups 速率

cpu-1
均值
1.30 次/s
cpu-2
均值
1.26 次/s
cpu-3
均值
1.57 次/s
cpu-4
均值
1.55 次/s
cpu-5
均值
1.50 次/s
soak
均值
1.36 次/s
settle
均值
1.37 次/s

磁盘读取与写入

cpu-1
读取
0.0 KiB
写入
188.0 KiB
cpu-2
读取
0.0 KiB
写入
376.0 KiB
cpu-3
读取
0.0 KiB
写入
376.0 KiB
cpu-4
读取
0.0 KiB
写入
376.0 KiB
cpu-5
读取
4.0 KiB
写入
376.0 KiB
soak
读取
8.0 KiB
写入
2,632.0 KiB
settle
读取
8.0 KiB
写入
940.0 KiB

磁盘平均吞吐

cpu-1
读取
0.00 KiB/s
写入
1.57 KiB/s
cpu-2
读取
0.00 KiB/s
写入
3.16 KiB/s
cpu-3
读取
0.00 KiB/s
写入
3.16 KiB/s
cpu-4
读取
0.00 KiB/s
写入
3.16 KiB/s
cpu-5
读取
0.03 KiB/s
写入
3.16 KiB/s
soak
读取
0.01 KiB/s
写入
2.93 KiB/s
settle
读取
0.03 KiB/s
写入
3.14 KiB/s

系统 CPU

各逻辑核心合计

cpu-1
均值
99.8 %
峰值
207.0 %
cpu-2
均值
99.0 %
峰值
221.0 %
cpu-3
均值
101.1 %
峰值
216.7 %
cpu-4
均值
100.5 %
峰值
176.2 %
cpu-5
均值
133.0 %
峰值
372.7 %
soak
均值
146.8 %
峰值
329.4 %
settle
均值
144.7 %
峰值
266.0 %
04 / TIME SERIES

运行曲线

横轴:阶段内秒数 · 同一指标各阶段使用相同纵轴
Time Profiler

cpu-1

已采集

2026-09-14T13:00:32.154+08:00 · 120.75 s

CPU 均值0.19%
CPU P50 / P950.04 / 0.07%
唤醒次数156
资源样本116
CPU 采样覆盖99.6%
最大采样间隔1.08 s
CPU最低 0.00 · 峰值 11.85 %
0 3.75 7.5 11.25 15 0s 24s 48s 72s 96s 120s 峰值 11.85
Footprint最低 160.16 · 峰值 160.22 MiB
0 50 100 150 200 0s 24s 48s 72s 96s 120s 峰值 160.22
RSS最低 221.27 · 峰值 221.39 MiB
0 62.5 125 187.5 250 0s 24s 48s 72s 96s 120s 峰值 221.39
压缩内存最低 4.00 · 峰值 4.00 MiB
0 1.125 2.25 3.375 4.5 0s 24s 48s 72s 96s 120s 峰值 4.00
线程数最低 5.00 · 峰值 8.00 个
0 3.75 7.5 11.25 15 0s 24s 48s 72s 96s 120s 峰值 8.00

内存采样明细 MiB

指标 首值 尾值 中位数
Footprint 160.20 160.16 160.17
RSS 221.39 221.34 221.34
压缩内存 4.00 4.00 4.00

CPU 为区间使用率. 内存与线程为采样时刻值. 拖动滑块或移动指针查看单点数据

Time Profiler

cpu-2

已采集

2026-09-14T13:02:50.565+08:00 · 120.76 s

CPU 均值0.29%
CPU P50 / P950.05 / 0.13%
唤醒次数150
资源样本115
CPU 采样覆盖99.6%
最大采样间隔1.08 s
CPU最低 0.01 · 峰值 12.01 %
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 12.01
Footprint最低 160.16 · 峰值 160.30 MiB
0 50 100 150 200 0s 24s 48s 71s 95s 119s 峰值 160.30
RSS最低 221.28 · 峰值 221.50 MiB
0 62.5 125 187.5 250 0s 24s 48s 71s 95s 119s 峰值 221.50
压缩内存最低 3.98 · 峰值 4.00 MiB
0 1.125 2.25 3.375 4.5 0s 24s 48s 71s 95s 119s 峰值 4.00
线程数最低 5.00 · 峰值 10.00 个
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 10.00

内存采样明细 MiB

指标 首值 尾值 中位数
Footprint 160.20 160.27 160.20
RSS 221.39 221.44 221.36
压缩内存 4.00 3.98 4.00

CPU 为区间使用率. 内存与线程为采样时刻值. 拖动滑块或移动指针查看单点数据

Time Profiler

cpu-3

已采集

2026-09-14T13:05:08.184+08:00 · 120.76 s

CPU 均值0.30%
CPU P50 / P950.06 / 0.14%
唤醒次数186
资源样本115
CPU 采样覆盖99.6%
最大采样间隔1.07 s
CPU最低 0.01 · 峰值 11.91 %
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 11.91
Footprint最低 160.19 · 峰值 160.33 MiB
0 50 100 150 200 0s 24s 48s 71s 95s 119s 峰值 160.33
RSS最低 221.34 · 峰值 221.50 MiB
0 62.5 125 187.5 250 0s 24s 48s 71s 95s 119s 峰值 221.50
压缩内存最低 3.98 · 峰值 3.98 MiB
0 1.125 2.25 3.375 4.5 0s 24s 48s 71s 95s 119s 峰值 3.98
线程数最低 5.00 · 峰值 9.00 个
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 9.00

内存采样明细 MiB

指标 首值 尾值 中位数
Footprint 160.19 160.27 160.20
RSS 221.34 221.41 221.41
压缩内存 3.98 3.98 3.98

CPU 为区间使用率. 内存与线程为采样时刻值. 拖动滑块或移动指针查看单点数据

Time Profiler

cpu-4

已采集

2026-09-14T13:07:26.252+08:00 · 120.76 s

CPU 均值0.29%
CPU P50 / P950.05 / 0.13%
唤醒次数184
资源样本115
CPU 采样覆盖99.6%
最大采样间隔1.08 s
CPU最低 0.01 · 峰值 11.78 %
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 11.78
Footprint最低 160.22 · 峰值 160.36 MiB
0 50 100 150 200 0s 24s 48s 71s 95s 119s 峰值 160.36
RSS最低 221.31 · 峰值 221.56 MiB
0 62.5 125 187.5 250 0s 24s 48s 71s 95s 119s 峰值 221.56
压缩内存最低 3.98 · 峰值 3.98 MiB
0 1.125 2.25 3.375 4.5 0s 24s 48s 71s 95s 119s 峰值 3.98
线程数最低 5.00 · 峰值 8.00 个
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 8.00

内存采样明细 MiB

指标 首值 尾值 中位数
Footprint 160.22 160.28 160.30
RSS 221.31 221.42 221.44
压缩内存 3.98 3.98 3.98

CPU 为区间使用率. 内存与线程为采样时刻值. 拖动滑块或移动指针查看单点数据

Time Profiler

cpu-5

已采集

2026-09-14T13:09:44.345+08:00 · 120.74 s

CPU 均值0.27%
CPU P50 / P950.05 / 0.92%
唤醒次数178
资源样本115
CPU 采样覆盖99.6%
最大采样间隔1.12 s
CPU最低 0.01 · 峰值 6.53 %
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 6.53
Footprint最低 160.28 · 峰值 160.44 MiB
0 50 100 150 200 0s 24s 48s 71s 95s 119s 峰值 160.44
RSS最低 219.98 · 峰值 221.58 MiB
0 62.5 125 187.5 250 0s 24s 48s 71s 95s 119s 峰值 221.58
压缩内存最低 3.98 · 峰值 3.98 MiB
0 1.125 2.25 3.375 4.5 0s 24s 48s 71s 95s 119s 峰值 3.98
线程数最低 4.00 · 峰值 8.00 个
0 3.75 7.5 11.25 15 0s 24s 48s 71s 95s 119s 峰值 8.00

内存采样明细 MiB

指标 首值 尾值 中位数
Footprint 160.28 160.33 160.34
RSS 221.34 220.02 221.34
压缩内存 3.98 3.98 3.98

CPU 为区间使用率. 内存与线程为采样时刻值. 拖动滑块或移动指针查看单点数据

Activity Monitor

soak

已采集

2026-09-14T13:12:02.346+08:00 · 900.76 s

CPU 均值0.27%
CPU P50 / P950.05 / 0.09%
唤醒次数1,226
资源样本860
CPU 采样覆盖99.9%
最大采样间隔1.09 s
CPU最低 0.01 · 峰值 12.22 %
0 3.75 7.5 11.25 15 0s 180s 360s 540s 720s 900s 峰值 12.22
Footprint最低 160.31 · 峰值 161.34 MiB
0 50 100 150 200 0s 180s 360s 540s 720s 900s 峰值 161.34
RSS最低 220.02 · 峰值 221.12 MiB
0 62.5 125 187.5 250 0s 180s 360s 540s 720s 900s 峰值 221.12
压缩内存最低 3.98 · 峰值 3.98 MiB
0 1.125 2.25 3.375 4.5 0s 180s 360s 540s 720s 900s 峰值 3.98
线程数最低 4.00 · 峰值 9.00 个
0 3.75 7.5 11.25 15 0s 180s 360s 540s 720s 900s 峰值 9.00

内存采样明细 MiB

指标 首值 尾值 中位数
Footprint 160.41 161.30 160.86
RSS 220.16 221.08 220.56
压缩内存 3.98 3.98 3.98

CPU 为区间使用率. 内存与线程为采样时刻值. 拖动滑块或移动指针查看单点数据

Activity Monitor

settle

已采集

2026-09-14T13:27:14.667+08:00 · 300.67 s

CPU 均值0.29%
CPU P50 / P950.05 / 0.18%
唤醒次数409
资源样本287
CPU 采样覆盖99.8%
最大采样间隔1.09 s
CPU最低 0.00 · 峰值 11.90 %
0 3.75 7.5 11.25 15 0s 60s 120s 179s 239s 299s 峰值 11.90
Footprint最低 161.28 · 峰值 161.63 MiB
0 50 100 150 200 0s 60s 120s 179s 239s 299s 峰值 161.63
RSS最低 220.98 · 峰值 221.36 MiB
0 62.5 125 187.5 250 0s 60s 120s 179s 239s 299s 峰值 221.36
压缩内存最低 3.98 · 峰值 3.98 MiB
0 1.125 2.25 3.375 4.5 0s 60s 120s 179s 239s 299s 峰值 3.98
线程数最低 4.00 · 峰值 9.00 个
0 3.75 7.5 11.25 15 0s 60s 120s 179s 239s 299s 峰值 9.00

内存采样明细 MiB

指标 首值 尾值 中位数
Footprint 161.28 161.50 161.50
RSS 220.98 221.19 221.17
压缩内存 3.98 3.98 3.98

CPU 为区间使用率. 内存与线程为采样时刻值. 拖动滑块或移动指针查看单点数据

05 / CPU PROFILE

CPU 采样分布与热点

采样权重 / ms

主线程 CPU 样本分布

叶节点所属库 · 已导出 Top 10

libswiftCore.dylib
423 ms
AttributeGraph
193 ms
Foundation
187 ms
libsystem_kernel.dylib
138 ms
SwiftUICore
113 ms
libsystem_pthread.dylib
81 ms
CoreFoundation
72 ms
libsystem_malloc.dylib
70 ms
CodexBar
57 ms
libobjc.A.dylib
53 ms
cpu-1 · CPU 采样权重 226 ms

叶节点热点 · Top 12

start_wqthread
14 ms
AG::Graph::UpdateStack::update()
11 ms
AG::Graph::propagate_dirty(AG::AttributeID)
10 ms
__workq_kernreturn
6 ms
_platform_memmove
6 ms
stat
5 ms
AG::Subgraph::update(unsigned int)
4 ms
swift_retain
4 ms
specialized __RawDictionaryStorage.find<A>(_:)
4 ms
<deduplicated_symbol>
4 ms
_xzm_xzone_malloc_tiny
3 ms
_platform_memcmp
3 ms

调用链热点 · Top 12

权重包含子调用

RunCurrentEventLoopInMode
105 ms
_BlockUntilNextEventMatchingListInMode
105 ms
NSApplicationMain
105 ms
ReceiveNextEventCommon
105 ms
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:]
105 ms
start
105 ms
_DPSBlockUntilNextEventMatchingListInMode
105 ms
specialized runApp(_:)
105 ms
runApp<A>(_:)
105 ms
-[NSApplication run]
105 ms
0x1003de3c8
105 ms
_DPSNextEvent
105 ms

高 CPU 采样权重的 1 秒区间

58–59 s
62 ms
59–60 s
62 ms
56–57 s
27 ms
119–120 s
27 ms
57–58 s
4 ms
44–45 s
3 ms
5–6 s
2 ms
9–10 s
2 ms

调用栈采样记录

有调用栈
226 ms
缺失调用栈
0 ms
含 App 帧
200 ms
含命名 App 帧
1 ms
全部已导出热点
叶节点 权重 / ms
start_wqthread 14
AG::Graph::UpdateStack::update() 11
AG::Graph::propagate_dirty(AG::AttributeID) 10
__workq_kernreturn 6
_platform_memmove 6
stat 5
AG::Subgraph::update(unsigned int) 4
swift_retain 4
specialized __RawDictionaryStorage.find<A>(_:) 4
<deduplicated_symbol> 4
_xzm_xzone_malloc_tiny 3
_platform_memcmp 3
mach_msg2_trap 3
__open 3
swift_bridgeObjectRelease 2
StackLayout.UnmanagedImplementation.prioritize(_:proposedSize:) 2
specialized __RawDictionaryStorage.find<A>(_:hashValue:) 2
getCache(swift::TargetTypeContextDescriptor<swift::InProcess> const&) 2
调用链 权重 / ms
RunCurrentEventLoopInMode 105
_BlockUntilNextEventMatchingListInMode 105
NSApplicationMain 105
ReceiveNextEventCommon 105
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] 105
start 105
_DPSBlockUntilNextEventMatchingListInMode 105
specialized runApp(_:) 105
runApp<A>(_:) 105
-[NSApplication run] 105
0x1003de3c8 105
_DPSNextEvent 105
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 105
static App.main() 105
_CFRunLoopRunSpecificWithOptions 104
<deduplicated_symbol> 101
completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) 98
0x1005a8a38 92
0x1003e3e94 92
specialized GraphHost.runTransaction(_:do:id:) 73
GraphHost.flushTransactions() 71
ViewGraphRootValueUpdater._updateViewGraph<A>(body:) 70
__CFRunLoopDoObservers 69
partial apply for closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 67
ViewGraphRootValueUpdater.updateGraph<A>(body:) 67
@objc closure #1 in static NSRunLoop.addObserver(_:) 67
closure #1 in closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 67
closure #1 in static Update.ensure<A>(_:) 67
closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 67
specialized static NSRunLoop.flushObservers() 67
partial apply for closure #1 in ViewGraphRootValueUpdater.updateGraph<A>(body:) 67
static Update.ensure<A>(_:) 67
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 67
partial apply for closure #1 in closure #1 in NSHostingView.beginTransaction() 67
AG::Graph::UpdateStack::update() 65
cpu-2 · CPU 采样权重 347 ms

叶节点热点 · Top 12

start_wqthread
15 ms
AG::Graph::propagate_dirty(AG::AttributeID)
15 ms
AG::Graph::UpdateStack::update()
11 ms
swift_retain
9 ms
<deduplicated_symbol>
8 ms
objc_msgSend
7 ms
swift_release
7 ms
AG::Subgraph::update(unsigned int)
6 ms
0x1004545c8
6 ms
mach_msg2_trap
5 ms
__open
5 ms
___chkstk_darwin
4 ms

调用链热点 · Top 12

权重包含子调用

completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*)
169 ms
0x1005a8a38
167 ms
0x1003e3e94
167 ms
NSApplicationMain
138 ms
runApp<A>(_:)
138 ms
_BlockUntilNextEventMatchingListInMode
138 ms
ReceiveNextEventCommon
138 ms
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:]
138 ms
_DPSBlockUntilNextEventMatchingListInMode
138 ms
_CFRunLoopRunSpecificWithOptions
138 ms
-[NSApplication run]
138 ms
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
138 ms

高 CPU 采样权重的 1 秒区间

45–46 s
118 ms
107–108 s
74 ms
108–109 s
51 ms
105–106 s
27 ms
43–44 s
21 ms
31–32 s
3 ms
72–73 s
3 ms
99–100 s
3 ms

调用栈采样记录

有调用栈
346 ms
缺失调用栈
1 ms
含 App 帧
313 ms
含命名 App 帧
1 ms
全部已导出热点
叶节点 权重 / ms
start_wqthread 15
AG::Graph::propagate_dirty(AG::AttributeID) 15
AG::Graph::UpdateStack::update() 11
swift_retain 9
<deduplicated_symbol> 8
objc_msgSend 7
swift_release 7
AG::Subgraph::update(unsigned int) 6
0x1004545c8 6
mach_msg2_trap 5
__open 5
___chkstk_darwin 4
swift_allocObject 4
_xzm_xzone_malloc_tiny 4
_ContiguousArrayStorage.__deallocating_deinit 4
swift::TargetContextDescriptor<swift::InProcess>::getGenericContext() const 4
stat 3
swift_cvw_destroyImpl(swift::OpaqueValue*, swift::TargetMetadata<swift::InProcess> const*) 3
调用链 权重 / ms
completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) 169
0x1005a8a38 167
0x1003e3e94 167
NSApplicationMain 138
runApp<A>(_:) 138
_BlockUntilNextEventMatchingListInMode 138
ReceiveNextEventCommon 138
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] 138
_DPSBlockUntilNextEventMatchingListInMode 138
_CFRunLoopRunSpecificWithOptions 138
-[NSApplication run] 138
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 138
RunCurrentEventLoopInMode 138
start 138
0x1003de3c8 138
static App.main() 138
specialized runApp(_:) 138
_DPSNextEvent 138
<deduplicated_symbol> 134
0x1005a6a9c 109
0x1005843f8 96
0x10058ef84 96
ViewGraphRootValueUpdater._updateViewGraph<A>(body:) 95
__CFRunLoopDoObservers 94
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 94
specialized GraphHost.runTransaction(_:do:id:) 94
GraphHost.flushTransactions() 93
@objc closure #1 in static NSRunLoop.addObserver(_:) 91
specialized static NSRunLoop.flushObservers() 91
partial apply for closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 90
ViewGraphRootValueUpdater.updateGraph<A>(body:) 90
closure #1 in closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 90
closure #1 in static Update.ensure<A>(_:) 90
closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 90
partial apply for closure #1 in ViewGraphRootValueUpdater.updateGraph<A>(body:) 90
cpu-3 · CPU 采样权重 360 ms

叶节点热点 · Top 12

start_wqthread
16 ms
AG::Graph::UpdateStack::update()
16 ms
AG::Graph::propagate_dirty(AG::AttributeID)
15 ms
<deduplicated_symbol>
12 ms
_platform_memmove
9 ms
stat
7 ms
0x1004545c8
7 ms
__rename
7 ms
_xzm_xzone_malloc_tiny
7 ms
swift_release
6 ms
mach_msg2_trap
5 ms
AG::Subgraph::update(unsigned int)
5 ms

调用链热点 · Top 12

权重包含子调用

completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*)
172 ms
0x1005a8a38
170 ms
0x1003e3e94
170 ms
_DPSNextEvent
148 ms
RunCurrentEventLoopInMode
148 ms
_BlockUntilNextEventMatchingListInMode
148 ms
NSApplicationMain
148 ms
ReceiveNextEventCommon
148 ms
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:]
148 ms
start
148 ms
_DPSBlockUntilNextEventMatchingListInMode
148 ms
specialized runApp(_:)
148 ms

高 CPU 采样权重的 1 秒区间

32–33 s
127 ms
95–96 s
64 ms
94–95 s
63 ms
30–31 s
26 ms
92–93 s
23 ms
93–94 s
8 ms
10–11 s
3 ms
79–80 s
3 ms

调用栈采样记录

有调用栈
360 ms
缺失调用栈
0 ms
含 App 帧
325 ms
含命名 App 帧
1 ms
全部已导出热点
叶节点 权重 / ms
start_wqthread 16
AG::Graph::UpdateStack::update() 16
AG::Graph::propagate_dirty(AG::AttributeID) 15
<deduplicated_symbol> 12
_platform_memmove 9
stat 7
0x1004545c8 7
__rename 7
_xzm_xzone_malloc_tiny 7
swift_release 6
mach_msg2_trap 5
AG::Subgraph::update(unsigned int) 5
swift::MetadataCacheKey::operator==(swift::MetadataCacheKey const&) const 5
swift::TargetContextDescriptor<swift::InProcess>::getGenericContext() const 5
objc_msgSend 4
CA::Layer::insert_sublayer(CA::Transaction*, CALayer*, unsigned long) 4
JSONWriter.serializeString(_:) 4
specialized Sequence<>.lexicographicallyPrecedes<A>(_:) 4
调用链 权重 / ms
completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) 172
0x1005a8a38 170
0x1003e3e94 170
_DPSNextEvent 148
RunCurrentEventLoopInMode 148
_BlockUntilNextEventMatchingListInMode 148
NSApplicationMain 148
ReceiveNextEventCommon 148
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] 148
start 148
_DPSBlockUntilNextEventMatchingListInMode 148
specialized runApp(_:) 148
_CFRunLoopRunSpecificWithOptions 148
runApp<A>(_:) 148
-[NSApplication run] 148
0x1003de3c8 148
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 148
static App.main() 148
<deduplicated_symbol> 144
0x1005a6a9c 112
GraphHost.flushTransactions() 99
0x10058ef84 99
__CFRunLoopDoObservers 98
specialized GraphHost.runTransaction(_:do:id:) 98
0x1005843f8 98
ViewGraphRootValueUpdater._updateViewGraph<A>(body:) 96
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 96
partial apply for closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 95
ViewGraphRootValueUpdater.updateGraph<A>(body:) 95
@objc closure #1 in static NSRunLoop.addObserver(_:) 95
closure #1 in closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 95
closure #1 in static Update.ensure<A>(_:) 95
closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 95
specialized static NSRunLoop.flushObservers() 95
partial apply for closure #1 in ViewGraphRootValueUpdater.updateGraph<A>(body:) 95
cpu-4 · CPU 采样权重 346 ms

叶节点热点 · Top 12

AG::Graph::propagate_dirty(AG::AttributeID)
21 ms
start_wqthread
13 ms
AG::Subgraph::update(unsigned int)
10 ms
_xzm_xzone_malloc_tiny
9 ms
AG::Graph::UpdateStack::update()
8 ms
stat
8 ms
swift_retain
6 ms
swift_bridgeObjectRelease
6 ms
<deduplicated_symbol>
5 ms
_platform_memmove
4 ms
Hasher._finalize()
4 ms
CA::Layer::insert_sublayer(CA::Transaction*, CALayer*, unsigned long)
4 ms

调用链热点 · Top 12

权重包含子调用

completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*)
165 ms
0x1005a8a38
164 ms
0x1003e3e94
164 ms
RunCurrentEventLoopInMode
141 ms
_BlockUntilNextEventMatchingListInMode
141 ms
NSApplicationMain
141 ms
ReceiveNextEventCommon
141 ms
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:]
141 ms
start
141 ms
_DPSBlockUntilNextEventMatchingListInMode
141 ms
specialized runApp(_:)
141 ms
runApp<A>(_:)
141 ms

高 CPU 采样权重的 1 秒区间

19–20 s
123 ms
81–82 s
122 ms
79–80 s
29 ms
17–18 s
22 ms
80–81 s
4 ms
53–54 s
3 ms
14–15 s
2 ms
18–19 s
2 ms

调用栈采样记录

有调用栈
346 ms
缺失调用栈
0 ms
含 App 帧
313 ms
含命名 App 帧
1 ms
全部已导出热点
叶节点 权重 / ms
AG::Graph::propagate_dirty(AG::AttributeID) 21
start_wqthread 13
AG::Subgraph::update(unsigned int) 10
_xzm_xzone_malloc_tiny 9
AG::Graph::UpdateStack::update() 8
stat 8
swift_retain 6
swift_bridgeObjectRelease 6
<deduplicated_symbol> 5
_platform_memmove 4
Hasher._finalize() 4
CA::Layer::insert_sublayer(CA::Transaction*, CALayer*, unsigned long) 4
_xzm_free 4
specialized DataProtocol.matches<A>(_:from:) 4
swift_bridgeObjectRetain 4
_swift_stdlib_getBinaryProperties 4
swift_release 4
swift_beginAccess 3
调用链 权重 / ms
completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) 165
0x1005a8a38 164
0x1003e3e94 164
RunCurrentEventLoopInMode 141
_BlockUntilNextEventMatchingListInMode 141
NSApplicationMain 141
ReceiveNextEventCommon 141
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] 141
start 141
_DPSBlockUntilNextEventMatchingListInMode 141
specialized runApp(_:) 141
runApp<A>(_:) 141
-[NSApplication run] 141
0x1003de3c8 141
_DPSNextEvent 141
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 141
static App.main() 141
_CFRunLoopRunSpecificWithOptions 140
<deduplicated_symbol> 138
0x1005a6a9c 104
specialized GraphHost.runTransaction(_:do:id:) 100
ViewGraphRootValueUpdater._updateViewGraph<A>(body:) 97
GraphHost.flushTransactions() 97
__CFRunLoopDoObservers 96
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 96
partial apply for closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 93
ViewGraphRootValueUpdater.updateGraph<A>(body:) 93
@objc closure #1 in static NSRunLoop.addObserver(_:) 93
closure #1 in closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 93
closure #1 in static Update.ensure<A>(_:) 93
closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 93
specialized static NSRunLoop.flushObservers() 93
partial apply for closure #1 in ViewGraphRootValueUpdater.updateGraph<A>(body:) 93
static Update.ensure<A>(_:) 93
partial apply for closure #1 in closure #1 in NSHostingView.beginTransaction() 93
cpu-5 · CPU 采样权重 333 ms

叶节点热点 · Top 12

AG::Graph::propagate_dirty(AG::AttributeID)
16 ms
start_wqthread
14 ms
AG::Graph::UpdateStack::update()
11 ms
swift_release
9 ms
AG::Subgraph::update(unsigned int)
8 ms
objc_msgSend
6 ms
Hasher._finalize()
6 ms
stat
6 ms
swift::swift_slowAllocTyped(unsigned long, unsigned long, unsigned long long)
5 ms
_platform_memmove
5 ms
swift::TargetContextDescriptor<swift::InProcess>::getGenericContext() const
4 ms
__open
4 ms

调用链热点 · Top 12

权重包含子调用

completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*)
149 ms
0x1005a8a38
148 ms
0x1003e3e94
148 ms
NSApplicationMain
139 ms
runApp<A>(_:)
139 ms
_BlockUntilNextEventMatchingListInMode
139 ms
ReceiveNextEventCommon
139 ms
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:]
139 ms
_DPSBlockUntilNextEventMatchingListInMode
139 ms
_CFRunLoopRunSpecificWithOptions
139 ms
-[NSApplication run]
139 ms
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
139 ms

高 CPU 采样权重的 1 秒区间

5–6 s
111 ms
68–69 s
60 ms
67–68 s
55 ms
65–66 s
28 ms
3–4 s
22 ms
61–62 s
4 ms
35–36 s
3 ms
4–5 s
2 ms

调用栈采样记录

有调用栈
333 ms
缺失调用栈
0 ms
含 App 帧
293 ms
含命名 App 帧
2 ms
全部已导出热点
叶节点 权重 / ms
AG::Graph::propagate_dirty(AG::AttributeID) 16
start_wqthread 14
AG::Graph::UpdateStack::update() 11
swift_release 9
AG::Subgraph::update(unsigned int) 8
objc_msgSend 6
Hasher._finalize() 6
stat 6
swift::swift_slowAllocTyped(unsigned long, unsigned long, unsigned long long) 5
_platform_memmove 5
swift::TargetContextDescriptor<swift::InProcess>::getGenericContext() const 4
__open 4
__rename 4
swift::MetadataCacheKey::operator==(swift::MetadataCacheKey const&) const 4
swift_bridgeObjectRetain 3
UnaryLayoutEngine.sizeThatFits(_:) 3
<deduplicated_symbol> 3
swift_bridgeObjectRelease 3
调用链 权重 / ms
completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) 149
0x1005a8a38 148
0x1003e3e94 148
NSApplicationMain 139
runApp<A>(_:) 139
_BlockUntilNextEventMatchingListInMode 139
ReceiveNextEventCommon 139
-[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] 139
_DPSBlockUntilNextEventMatchingListInMode 139
_CFRunLoopRunSpecificWithOptions 139
-[NSApplication run] 139
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 139
RunCurrentEventLoopInMode 139
start 139
0x1003de3c8 139
static App.main() 139
specialized runApp(_:) 139
_DPSNextEvent 139
<deduplicated_symbol> 134
0x1005a6a9c 99
specialized GraphHost.runTransaction(_:do:id:) 95
__CFRunLoopDoObservers 93
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 93
ViewGraphRootValueUpdater._updateViewGraph<A>(body:) 91
GraphHost.flushTransactions() 91
@objc closure #1 in static NSRunLoop.addObserver(_:) 88
specialized static NSRunLoop.flushObservers() 88
partial apply for closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 87
ViewGraphRootValueUpdater.updateGraph<A>(body:) 87
closure #1 in closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 87
closure #1 in static Update.ensure<A>(_:) 87
closure #1 in closure #1 in closure #1 in NSHostingView.beginTransaction() 87
partial apply for closure #1 in ViewGraphRootValueUpdater.updateGraph<A>(body:) 87
static Update.ensure<A>(_:) 87
partial apply for closure #1 in closure #1 in NSHostingView.beginTransaction() 87
06 / EVENTS

事件与热状态

Hangs / Hang risks

cpu-1
Hangs
0
Hang risks
0
cpu-2
Hangs
0
Hang risks
0
cpu-3
Hangs
0
Hang risks
0
cpu-4
Hangs
0
Hang risks
0
cpu-5
Hangs
0
Hang risks
0
soak
Hangs
N/A
Hang risks
N/A
settle
Hangs
N/A
Hang risks
N/A

热状态

cpu-1
Nominal00:00.000.000 → 02:00.753.983
cpu-2
Nominal00:00.000.000 → 02:00.757.416
cpu-3
Nominal00:00.000.000 → 02:00.756.239
cpu-4
Nominal00:00.000.000 → 02:00.762.267
cpu-5
Nominal00:00.000.000 → 02:00.742.552
soak
Nominal00:00.000.000 → 15:00.759.109
settle
Nominal00:00.000.000 → 05:00.673.611
07 / RECORDS

采集记录

阶段 模板 记录时长 样本数 最大间隔 CPU 采样覆盖 状态
cpu-1 Time Profiler 120.75 s 116 1.08 s 99.6% 已采集
cpu-2 Time Profiler 120.76 s 115 1.08 s 99.6% 已采集
cpu-3 Time Profiler 120.76 s 115 1.07 s 99.6% 已采集
cpu-4 Time Profiler 120.76 s 115 1.08 s 99.6% 已采集
cpu-5 Time Profiler 120.74 s 115 1.12 s 99.6% 已采集
soak Activity Monitor 900.76 s 860 1.09 s 99.9% 已采集
settle Activity Monitor 300.67 s 287 1.09 s 99.8% 已采集

运行环境

项目
App CodexBar
Bundle ID app.zabrian.codexbar
版本 / 构建 4.0.0 / 100
macOS / 架构 26.6.2 / arm64
芯片 / 逻辑核心 Apple M5 / 10
内存 32 GiB
Instruments xctrace version 16.0 (17F113)
电源 Now drawing from 'AC Power' -InternalBattery-0 (id=7340131) 80%; AC attached; not charging present: true
工作负载 Natural workload; UI and active tasks uncontrolled

系统 Load Average

1 分钟
开始
1.65
结束
3.21
5 分钟
开始
2.05
结束
2.66
15 分钟
开始
2.66
结束
2.60
App 标识
字段
App 文件指纹 1f4ebcc5dbce1087d479915e7287a19a96e2351eb0d01d198a5857e8f62558fe
Mach-O UUID x86_64: F36CBB2E-BC36-3A2C-A0A5-2E8F8F4B9543; arm64: B9FC7F00-4408-31D6-8508-FDEC6513AB17