diff --git a/.gitignore b/.gitignore index 3cb136d..2a597f9 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ lib/ *.py *.tmp *.aps +*.diagsession diff --git a/diagsession-cpu-analysis.md b/diagsession-cpu-analysis.md new file mode 100644 index 0000000..a11756b --- /dev/null +++ b/diagsession-cpu-analysis.md @@ -0,0 +1,238 @@ +# 打开大图纸慢 — CPU 采样分析 + +两轮 trace 的结论汇总。原始表格由 `tools/perf_diagsession.py` 生成,见 `report-cpu-hotspots.md`。 + +| 轮次 | 采集机 | CAD / 模块 | 采样 | 符号 | +| --- | --- | --- | --- | --- | +| ① 基线 | 另一台机器 | acdb23 / acgs / ASMKERN225A(2021 系) | 151,576 ≈ 151 s CPU | **无**(PDB 不匹配)→ 只有模块级 | +| ② 本机 | 本机 | acdb19 / modlr19 / ASMKERN219A(R190 部署) | 44,454 ≈ 43 s CPU | **有**(28/28 匹配,22 个是我们的)→ 函数级 | + +--- + +## 0. 结论(TL;DR) + +1. **我们的 C++ 代码自身耗时几乎可以忽略(≈2.5 %)**。慢的是它调用的 Parasolid 建模内核(两轮分别 **34 % / 43 %**)和每次绘制都重算几何这件事。 +2. 打开期的 CPU 几乎全在一条链上: + `acdb19 → 我们的实体 → 我们的 Draw3d/Draw3dSolid/GetBooleanPart3D → acdb19 → modlr19(ACIS) → Parasolid` +3. **`AecDbEntityCommon::base_ViewportDraw` 覆盖 74.3 % 的采样**——即"视口绘制"这一条路径。真正的优化点全部在这个函数下面。 +4. 两个可量化的浪费: + - **每次绘制都重建实体几何**:`GiDrawUtility::DrawPipe/DrawLoft/DrawRevolve` 合计 20.5 %; + `AecDbBDPipeBase::GetBooleanPart3D`(布尔)12.0 %;但缓存层 `AecDbX3dPart::EnsureCreated/Rebuild` + 已经在栈上(各 8.4 %)→ **缓存存在,却仍然每次判脏重建**。 + - **载入期把 ACIS 文本解析成 Region**:`AecDbEwPipeBase::RegionAcisInDwgInFields` 2.4 % + + `CoreTools::StringToRegion` 2.2 %,且 `StringToRegion` 栈里带 `Ntfs.sys/FLTMGR` → **解析时还在读文件**。 +5. 单线程串行:本轮 trace 里 **98.0 % 的采样集中在 1 个线程**(tid 10816),无并行;打开窗口 68 s 墙钟只用了 43 s CPU → 约 37 % 时间在等待。 +6. 环境干扰极大:**Windows Defender(MsMpEng.exe)自己烧了 40 s CPU**,和 acad 相当。测速必须先排除。 + +--- + +## 1. 怎么复现 + +```bat +:: 采集(WPR 比 VS 轻,不要用 VS 采,否则 devenv 抢核) +wpr -start CPU -filemode +:: ← 打开 DWG,等界面完全空闲 +wpr -stop C:\temp\open.etl + +:: 先校验符号(10 秒) +python tools\perf_diagsession.py C:\temp\open.etl --verify-only +:: 再出报告 +python tools\perf_diagsession.py C:\temp\open.etl --out report-cpu-hotspots.md +``` + +**关键**:采完到分析完之间不要重新编译。脚本用 trace 里的 `TimeDateStamp + SizeOfImage` +去 `/bin/Code2026/**` 找同一份二进制和它旁边的 `.pdb`。 +(上一版脚本误用「文件大小」比对 `SizeOfImage`,已修;否则永远匹配不上。) + +`.diagsession` 的本质是 zip:`sc.user_aux.etl`(ETW 事件流 + 调用栈)+ .NET 元数据 + PDB 缓存 + +计数器。VS 的 PDBCache 只带 .NET 的 pdb,**不含我们的**,所以换机器采集就必然符号缺失。 + +--- + +## 2. 第二轮(本机,函数级)★ + +### 2.1 概况 + +- trace 114 s;**打开动作在 t≈41 s → t≈109 s**(约 68 s 墙钟) +- acad.exe 采样 44,454;带完整栈 42,888 ≈ **42.9 s CPU** +- 线程:tid 10816 占 **97.99 %**,其余线程加起来不到 1 % → **完全串行** + +### 2.2 模块自耗时 + +| 模块 | 采样 | 占比 | 说明 | +| --- | ---: | ---: | --- | +| ASMKERN219A.dll | 9,325 | 21.7 % | Parasolid 内核 | +| ASMBASE219A.dll | 7,075 | 16.5 % | Parasolid 基础 | +| ntoskrnl.exe | 6,811 | 15.9 % | 内核(I/O、内存、锁) | +| **msvcr100.dll** | 3,419 | **8.0 %** | VS2010 CRT——**我们 arx 的分配器** | +| ntdll.dll | 2,453 | 5.7 % | 堆/临界区 | +| acdb19.dll | 1,782 | 4.2 % | AutoCAD 数据库 | +| Ntfs.sys | 1,325 | 3.1 % | 文件系统 | +| ASMINTR219A.dll | 783 | 1.8 % | Parasolid 求交 | +| **AecRxBase.arx** | 781 | **1.8 %** | 我们的代码 | +| ASMBOOL219A.dll | 576 | 1.3 % | Parasolid 布尔 | +| **CoreCommand.arx** | 221 | **0.5 %** | 我们的代码 | + +**家族汇总**:Parasolid(ASM*)**≈43 %**;内核 + 文件系统 + 杀软过滤 **≈24 %**;`msvcr100` **8.0 %**; +**我们自己的 arx ≈2.5 %**。 + +注意 `msvcr100` 8 %:它是 v100 工具集的 CRT,也就是我们 arx 的 `new/delete/malloc`。 +这条说明**临时对象的分配本身就是个可观成本**,和"每次重算几何"互为因果。 + +### 2.3 我们的"骨架函数"(栈内出现率,每栈去重) + +| 占比 | 函数 | +| ---: | --- | +| **74.3 %** | `AecRxBase.arx!AecDbEntityCommon::base_ViewportDraw` | +| 42.4 % | `AecRxBase.arx!AecDbCurveBase::subViewportDraw` | +| 31.9 % | `AecRxBase.arx!AecDbEntityBase::subViewportDraw` | +| 26.0 % | `CoreCommand.arx!AecDbEwEquipment::Draw3d` | +| 21.8 % | `CoreCommand.arx!AecDbEwEquipment::Draw3dSolid` | +| 18.7 % | `AecRxBase.arx!AcGiViewDraw::DrawPipe` | +| 16.0 % | `AecRxBase.arx!GiDrawUtility::DrawPipe` | +| 15.4 % | `CoreCommand.arx!AecDbGuardBar::Draw3d` | +| 13.5 % | `CoreCommand.arx!AecDbBDPipeBase::Draw3d` | +| 12.9 % | `AecRxBase.arx!AcGiViewDraw::DrawEntity` | +| 12.0 % | `CoreCommand.arx!AecDbBDPipeBase::GetDraw3dSolid` | +| 12.0 % | `CoreCommand.arx!AecDbBDPipeBase::GetBooleanPart3D` | +| 10.3 % | `CoreCommand.arx!AecDbWeir::Draw3d` | +| 9.7 % | `CoreCommand.arx!AecDbX3dPart::CreateDraw3dSolid` | +| 8.4 % | `CoreCommand.arx!AcDbX3dSolid::GetDraw3dSolid` | +| 8.4 % | `CoreCommand.arx!AecDbX3dPart::Rebuild` | +| 8.4 % | `CoreCommand.arx!AecDbX3dPart::EnsureCreated` | +| 8.0 % | `CoreCommand.arx!AecDbEwPipeBase::dwgInFields` | +| 7.8 % | `CoreCommand.arx!AcDbX3dSolid::ReCreate` | + +### 2.4 驱动 Parasolid 的我们的函数(栈上第一个"我们的帧") + +| 采样 | 占比 | 函数 | 调用的 Parasolid 能力 | +| ---: | ---: | --- | --- | +| 5,378 | **12.5 %** | `AecRxBase.arx!GiDrawUtility::DrawPipe` | ASMSWP(扫掠) | +| 4,104 | 9.6 % | `AecRxBase.arx!AcGiViewDraw::DrawEntity` | 混合 | +| 2,483 | 5.8 % | `AecRxBase.arx!GiDrawUtility::DrawLoft` | 放样 | +| 1,236 | 2.9 % | `CoreCommand.arx!AecDbEwEquipment::Draw3dSolid` | ASMSKIN(蒙皮) | +| 1,017 | 2.4 % | `CoreCommand.arx!AecDbEwPipeBase::RegionAcisInDwgInFields` | ←**载入期** | +| 939 | 2.2 % | `CoreCommand.arx!CoreTools::StringToRegion` | ACIS 文本→Region | +| 922 | 2.2 % | `AecRxBase.arx!GiDrawUtility::DrawRevolve` | 旋转 | +| 821 | 1.9 % | `CoreCommand.arx!AecDbBDPipeBase::GetBooleanPart3D` | ASMBOOL(布尔) | +| 681 | 1.6 % | `AecRxBase.arx!(anonymous)::createRegion` | | +| 524 | 1.2 % | `CoreCommand.arx!AcDbX3dSolid::CreateExtrude` | ASMSWP | +| 463 | 1.1 % | `CoreCommand.arx!CoreTools::RegionToString` | Region→ACIS 文本 | +| 461 | 1.1 % | `CoreCommand.arx!NewExtrude::makeSolid` | | +| 452 | 1.1 % | `CoreCommand.arx!TransformEntity` | | +| 450 | 1.1 % | `CoreCommand.arx!NewRevolve::makeSolid` | | +| 401 | 0.9 % | `CoreCommand.arx!AecDbEwPipeBase::RegionAcisoutDwgOutFields` | ←**回写** | +| 216 | 0.5 % | `CoreCommand.arx!AecDbGuardBar::Draw3d` | | +| 176 | 0.4 % | `CoreCommand.arx!AcDbX3dSolid::GetDraw3dSolid` | | +| 148 | 0.3 % | `CoreCommand.arx!NewLoft::makeSolid` | | + +### 2.5 载入期(`dwgInFields` / `copyFrom`)也在建几何 + +这些函数直接调用 `acdb19/modlr19` 并进入 Parasolid: + +| 采样 | 占比 | 函数 | +| ---: | ---: | --- | +| 1,832 | 4.3 % | `CoreCommand.arx!AecDbEwPipe::dwgInFields` | +| 1,254 | 2.9 % | `CoreCommand.arx!AecDbEwPipeBase::copyFrom` | +| 624 | 1.5 % | `AecDbEwFitting::dwgInFields` | +| 623 | 1.5 % | `AecDbEwPipeBase::dwgInFields` | +| 546 | 1.3 % | `AecDbEwPipeBase::dwgOutFields` | +| 265 / 225 / 154 / 109 / 90 / 67 / 60 | 各 ≤0.6 % | `AecDbXSlab/XWall/Weir/Beam/GuardBar/EwEquipment/Column::dwgInFields` | + +合计 **≈13.6 %**:**打开图纸时,读字段就直接把几何建出来了**(不是画的时候才建)。 + +### 2.6 几条代表性调用链 + +``` +GiDrawUtility::DrawPipe(12.5 % 的 Parasolid 入口) + ASMKERN219A <- ASMSWP219A <- modlr19 <- acdb19 <- AecRxBase.arx <- CoreCommand.arx + <- AecRxBase.arx <- acdb19 <- accore.dll <- acdb19 <- accore.dll <- acad.exe + +AecDbEwEquipment::Draw3dSolid(2.9 %) + ASMKERN219A <- ASMSKIN219A <- modlr19 <- acdb19 <- AecRxBase.arx <- CoreCommand.arx ... + +AecDbBDPipeBase::GetBooleanPart3D(1.9 %) + ASMKERN219A <- ASMBOOL219A <- modlr19 <- acdb19 <- CoreCommand.arx ... + +CoreTools::StringToRegion(6.9 % 含以下两种形式) + a) msvcr100 <- ASMKERN219A <- modlr19 <- acdb19 <- CoreCommand.arx ← 解析 SAT 文本 + b) ntoskrnl <- Ntfs.sys <- FLTMGR.SYS <- ntoskrnl <- ntdll <- KernelBase + <- mfc100u <- CoreCommand.arx ← 还在读文件! +``` + +### 2.7 我们自己的自耗时(能看到的只有这些) + +| 采样 | 占比 | 函数 | +| ---: | ---: | --- | +| 84 | 0.20 % | `AecRxBase.arx!std::_Tree::_Linsert` | +| 47 | 0.11 % | `AecRxBase.arx!std::_Tree::_Insert` | +| 37 | 0.09 % | `AecRxBase.arx!std::_Tree_val::_Parent` | +| 31 | 0.07 % | `CoreCommand.arx!AcDbObjectId::AcDbObjectId` | +| 19 | 0.04 % | `AecRxBase.arx!AecDbObjXDataMap::Resbuf2XDMap` | + +`std::_Tree` 那些全是同一个容器:**`std::map, AecXData>`**(XData 表)。 +合计约 0.6~0.8 %,都是 `CString` 字符串比较 + 红黑树插入。**优化它能省一点,但不是主要矛盾。** + +--- + +## 3. 第一轮(另一台机器,只有模块级) + +- 137 s trace,acad.exe 151,576 采样 ≈ **151 s CPU**,主线程占 65 % +- 独占:Parasolid 系 **34 %**、内核+文件系统 **17 %**、**TBB 线程池 14 %(基本空转)**、 + **SQLite 8.4 %(栈内 17 %)**、WPF 软件光栅化 3.3 %、我们的 arx **<1 %** +- **SQLite 17 % 全部在主线程串行**,调用点集中在 `CoreCommand.arx` RVA `0x172675~0x1735fc` + (15 个调用点,最大单点 6.9 %),时间上从 t=8 s 持续到 t=99 s +- 12 个 TBB worker 在 spin-then-yield(`NtYieldExecution`),主线程串行时仍在抢核 + +**两轮的差异**:第一轮走 SQLite 缓存库(2021 系),第二轮(R190 / CAD 2019)**完全没有 sqlite 采样** +(`sqlite3_x64.dll` / `sqliteserver.dll` 都加载了,但一次都没进)——说明 sqlite 只在特定版本/路径上生效, +这本身值得确认一下:**R190 是否真的用上了 `sqlite_query_cache` 那套东西?** + +**两轮的共同点**:Parasolid 占 30~43 %,且都发生在"我们的实体 → acdb/modlr → ASM"这条链上; +我们自己的代码几乎不耗 CPU。 + +--- + +## 4. 优化优先级 + +| 优先级 | 动作 | 依据 | 预期 | +| --- | --- | --- | --- | +| **P0** | **查清 `AecDbX3dPart::EnsureCreated/Rebuild` 为什么每次都重建**。缓存框架已在(8.4 % 在栈上),但每次绘制仍走到 `Rebuild` → 脏标记/`RecomputeFlags`/参数签名判定有问题 | §2.3 §2.4 | 直接吃掉 `base_ViewportDraw` 74 % 里的大头 | +| **P0** | **`GiDrawUtility::DrawPipe / DrawLoft / DrawRevolve` 的产物缓存**(12.5+5.8+2.2 = 20.5 %):参数不变就不要重新扫掠/放样/旋转 | §2.4 | 20 % 量级 | +| **P0** | **`AecDbBDPipeBase::GetBooleanPart3D` 布尔结果缓存**(管道/管件布尔 12.0 %) | §2.4 | 10 % 量级 | +| **P1** | **载入期惰性化**:`dwgInFields`/`copyFrom` 阶段不要立刻 `RegionAcisInDwgInFields` / + `StringToRegion` 把 ACIS 文本建出来,改成首次绘制时再做(并可并行) | §2.5 | ≈13.6 % | +| **P1** | `StringToRegion` 里的**文件 I/O** 需要确认(栈里有 `Ntfs/FLTMGR`):为什么解析 SAT 文本会读盘? | §2.6 | 未知,可能不小 | +| **P1** | `dwgOutFields` / `RegionToString` 回写(1.3+1.1 %):打开后马上又序列化一遍? | §2.4 §2.5 | 小 | +| **P2** | XData 容器 `std::map` → `unordered_map` 或按对象 id 缓存 | §2.7 | 0.5 % 左右 | +| **P2** | (第一轮)TBB 并行粒度 / 串行期缩线程池;R190 单线程,若要提速可考虑把实体建几何并行化 | §3 | 需先解决 P0 缓存 | +| **P2** | 抑制打开期间的 WPF 预览重绘(第一轮 3.3 %) | §3 | 小 | + +--- + +## 5. 环境干扰(必须先处理才能量化收益) + +| 轮次 | 与 acad 同时吃 CPU 的进程 | +| --- | --- | +| ① | MsMpEng 31,656、**devenv 28,334**、dwm 18,461 | +| ② | **MsMpEng 40,310**(≈40 s CPU,和 acad 相当)、devenv 17,271、dwm 11,423、Taskmgr 6,923 | + +- Windows Defender 在两轮里都烧掉约一个核 +- 第一轮是在 Visual Studio 里采的,devenv 自己也在抢 CPU + +**测速前**:给 DWG 目录、sqlite 目录加 Defender 排除项;关 VS / 任务管理器 / 其它重程序。 +否则「打开 40 s 还是 30 s」这种对比没有意义。 + +--- + +## 6. 限制与下一步 + +1. 两轮 trace 的 **CAD 版本不同**(一个 acdb23,一个 acdb19/R190),横向百分比不能直接比, + 但"Parasolid 占大头 + 绘制期重建几何 + 我们代码不耗时"这个结论一致。 +2. 当前部署是 **Debug 构建**(无内联、带调试检查),热点分布与 Release 会有差异。 + 定位用 Debug 没问题;**量化收益请用 Release 复测**(`Release-x64-R190` 目前只编了 1 个模块,需要补齐)。 +3. 采样只能回答"时间花在哪",回答不了"调用了多少次"。 + 若需要调用次数(比如"同一个实体在一次 open 里被 draw 了几次"),得在 + `base_ViewportDraw` / `EnsureCreated` 上加计数器,或用 ETW 自定义事件。 +4. 下一步建议:**先给 `base_ViewportDraw` 与 `AecDbX3dPart::EnsureCreated` 加轻量计数/耗时统计** + (只在 Debug 开),统计"每个实体被 draw 次数 / Rebuild 次数 / 命中率",再决定 P0 的缓存策略。 diff --git a/report-cpu-hotspots.md b/report-cpu-hotspots.md new file mode 100644 index 0000000..9890327 --- /dev/null +++ b/report-cpu-hotspots.md @@ -0,0 +1,462 @@ +# CPU 热点报告 — `report.diagsession` + +- 进程: **acad.exe**,采样 **42,888** 个(1 ms/样本 ≈ **42.9 s CPU**) +- 采集期内各进程采样: acad.exe 44,454、MsMpEng.exe 40,310、devenv.exe 17,271、dwm.exe 11,423、Taskmgr.exe 6,923、BingWallpaper.exe 6,516、msedgewebview2.exe 6,285、Idle ( 0) 4,191、System ( 4) 3,787、python.exe 3,072 +- PDB 精确匹配: **28** 个模块 + +## 独占自耗时 by 模块 + +| 采样 | 占比 | 项 | +|---:|---:|---| +| 9,325 | 21.74% | `ASMKERN219A.dll` | +| 7,075 | 16.50% | `ASMBASE219A.dll` | +| 6,811 | 15.88% | `ntoskrnl.exe` | +| 3,419 | 7.97% | `msvcr100.dll` | +| 2,453 | 5.72% | `ntdll.dll` | +| 1,782 | 4.16% | `acdb19.dll` | +| 1,325 | 3.09% | `Ntfs.sys` | +| 783 | 1.83% | `ASMINTR219A.dll` | +| 781 | 1.82% | `AecRxBase.arx` | +| 680 | 1.59% | `win32kbase.sys` | +| 671 | 1.56% | `accore.dll` | +| 576 | 1.34% | `ASMBOOL219A.dll` | +| 546 | 1.27% | `KernelBase.dll` | +| 535 | 1.25% | `FLTMGR.SYS` | +| 492 | 1.15% | `win32kfull.sys` | +| 485 | 1.13% | `mfc100u.dll` | +| 368 | 0.86% | `dswhip.dll` | +| 321 | 0.75% | `modlr19.dll` | +| 294 | 0.69% | `WdFilter.sys` | +| 275 | 0.64% | `clr.dll` | +| 274 | 0.64% | `ac1st19.dll` | +| 247 | 0.58% | `ASMLAW219A.dll` | +| 246 | 0.57% | `ASMSWP219A.dll` | +| 236 | 0.55% | `user32.dll` | +| 221 | 0.52% | `CoreCommand.arx` | +| 215 | 0.50% | `kernel32.dll` | +| 210 | 0.49% | `ASMCSTR219A.dll` | +| 186 | 0.43% | `nvlddmkm.sys` | +| 155 | 0.36% | `acge19.dll` | +| 140 | 0.33% | `nvd3dumx.dll` | +| 112 | 0.26% | `WindowsBase.ni.dll` | +| 93 | 0.22% | `gdi32full.dll` | +| 80 | 0.19% | `PresentationCore.ni.dll` | +| 79 | 0.18% | `TextShaping.dll` | +| 71 | 0.17% | `acad.exe` | +| 65 | 0.15% | `mscorlib.ni.dll` | +| 63 | 0.15% | `ASMTOPT219A.dll` | +| 60 | 0.14% | `luafv.sys` | +| 48 | 0.11% | `dxgkrnl.sys` | +| 47 | 0.11% | `win32u.dll` | + +## 我们模块的函数热点 + +### 自身耗时(exclusive,叶子帧是我们) + +| 采样 | 占比 | 模块!函数 | +|---:|---:|---| +| 84 | 0.20% | `AecRxBase.arx!std::_Tree::_Linsert` | +| 47 | 0.11% | `AecRxBase.arx!std::_Tree::_Insert` | +| 37 | 0.09% | `AecRxBase.arx!std::_Tree_val::_Parent` | +| 31 | 0.07% | `CoreCommand.arx!AcDbObjectId::AcDbObjectId` | +| 29 | 0.07% | `AecRxBase.arx!ATL::operator` | +| 26 | 0.06% | `AecRxBase.arx!std::_Tree::_Lbound` | +| 23 | 0.05% | `AecRxBase.arx!std::_Tree_unchecked_const_iterator::operator++` | +| 20 | 0.05% | `AecRxBase.arx!std::_Tree_val::_Isnil` | +| 19 | 0.04% | `AecRxBase.arx!std::_Tree_val::_Myval` | +| 19 | 0.04% | `AecRxBase.arx!AecDbObjXDataMap::Resbuf2XDMap` | +| 18 | 0.04% | `AecRxBase.arx!std::_Tree::_Lrotate` | +| 17 | 0.04% | `AecRxBase.arx!std::_Pair_base::_Pair_base` | +| 17 | 0.04% | `AecRxBase.arx!std::_Tree_unchecked_const_iterator::_Tree_unchecked_const_iterator` | +| 17 | 0.04% | `AecRxBase.arx!std::_Tree::_Erase` | +| 16 | 0.04% | `AecRxBase.arx!std::_Tree_val::_Min` | +| 15 | 0.03% | `AecRxBase.arx!std::_Tree_val::_Right` | +| 12 | 0.03% | `CoreCommand.arx!std::_Count` | +| 12 | 0.03% | `AecRxBase.arx!std::_Pair_base::_Pair_base` | +| 11 | 0.03% | `CoreCommand.arx!`vector constructor iterator'` | +| 11 | 0.03% | `AecRxBase.arx!std::less::operator()` | +| 11 | 0.03% | `AecRxBase.arx!$$Thunk@000024a0` | +| 9 | 0.02% | `AecRxBase.arx!std::_Tree_val::_Left` | +| 9 | 0.02% | `AecRxBase.arx!std::_Tree_const_iterator::operator==` | +| 8 | 0.02% | `AecRxBase.arx!$$Thunk@0000307b` | +| 8 | 0.02% | `AecRxBase.arx!std::_Tree::_Root` | +| 8 | 0.02% | `AecRxBase.arx!std::_Tree::find` | +| 8 | 0.02% | `CoreCommand.arx!std::_Tree::_Lbound` | +| 7 | 0.02% | `AecRxBase.arx!std::_Tree_const_iterator::_Tree_const_iterator` | +| 7 | 0.02% | `AecRxBase.arx!std::_Tree_iterator::_Tree_iterator` | +| 7 | 0.02% | `AecRxBase.arx!std::_Tree_val::_Key` | + +### 出现在调用栈中(inclusive,每栈去重)—— 真正的「骨架函数」 + +| 采样 | 占比 | 模块!函数 | +|---:|---:|---| +| 31,856 | 74.28% | `AecRxBase.arx!AecDbEntityCommon::base_ViewportDraw` | +| 18,178 | 42.38% | `AecRxBase.arx!AecDbCurveBase::subViewportDraw` | +| 13,678 | 31.89% | `AecRxBase.arx!AecDbEntityBase::subViewportDraw` | +| 11,128 | 25.95% | `CoreCommand.arx!AecDbEwEquipment::Draw3d` | +| 9,335 | 21.77% | `CoreCommand.arx!AecDbEwEquipment::Draw3dSolid` | +| 8,024 | 18.71% | `AecRxBase.arx!AcGiViewDraw::DrawPipe` | +| 6,874 | 16.03% | `AecRxBase.arx!GiDrawUtility::DrawPipe` | +| 6,594 | 15.37% | `CoreCommand.arx!AecDbGuardBar::Draw3d` | +| 5,787 | 13.49% | `CoreCommand.arx!AecDbBDPipeBase::Draw3d` | +| 5,543 | 12.92% | `AecRxBase.arx!AcGiViewDraw::DrawEntity` | +| 5,163 | 12.04% | `CoreCommand.arx!AecDbBDPipeBase::GetDraw3dSolid` | +| 5,156 | 12.02% | `CoreCommand.arx!AecDbBDPipeBase::GetBooleanPart3D` | +| 4,435 | 10.34% | `CoreCommand.arx!AecDbWeir::Draw3d` | +| 4,165 | 9.71% | `CoreCommand.arx!AecDbX3dPart::CreateDraw3dSolid` | +| 3,602 | 8.40% | `CoreCommand.arx!AcDbX3dSolid::GetDraw3dSolid` | +| 3,598 | 8.39% | `CoreCommand.arx!AecDbX3dPart::Rebuild` | +| 3,598 | 8.39% | `CoreCommand.arx!AecDbX3dPart::EnsureCreated` | +| 3,420 | 7.97% | `CoreCommand.arx!AecDbEwPipeBase::dwgInFields` | +| 3,346 | 7.80% | `CoreCommand.arx!AcDbX3dSolid::ReCreate` | +| 3,346 | 7.80% | `CoreCommand.arx!AcDbX3dSolid::EnsureCreated` | +| 3,130 | 7.30% | `CoreCommand.arx!AecDbEwPipeBase::RegionAcisInDwgInFields` | +| 3,130 | 7.30% | `CoreCommand.arx!AecDbEwPipeBase::SectionRegionDwgInFields` | +| 2,949 | 6.88% | `CoreCommand.arx!CoreTools::StringToRegion` | +| 2,917 | 6.80% | `AecRxBase.arx!GiDrawUtility::DrawLoft` | +| 2,770 | 6.46% | `CoreCommand.arx!AecDbClimbStair::Draw3d` | +| 2,755 | 6.42% | `CoreCommand.arx!AecDbClimbStair::DrawClimbStair3d1` | +| 2,754 | 6.42% | `CoreCommand.arx!AecDbClimbStair::DrawLadderH3d` | +| 2,496 | 5.82% | `AecRxBase.arx!GiDrawUtility::DrawCone` | +| 2,390 | 5.57% | `CoreCommand.arx!AecDbEwFitting::Draw3d` | +| 2,376 | 5.54% | `CoreCommand.arx!AecDbEwPipeBase::copyFrom` | +| 1,986 | 4.63% | `CoreCommand.arx!AcDbX3dSolid::CreateExtrude` | +| 1,832 | 4.27% | `CoreCommand.arx!AecDbEwPipe::dwgInFields` | +| 1,825 | 4.26% | `CoreCommand.arx!NewExtrude::makeSolid` | +| 1,682 | 3.92% | `AecRxBase.arx!AecDbEntityCommon::Draw3DBuffers` | +| 1,680 | 3.92% | `AecRxBase.arx!AcGiViewDraw::DrawCone` | +| 1,657 | 3.86% | `CoreCommand.arx!NewSolid::makeSolid` | +| 1,549 | 3.61% | `CoreCommand.arx!AecDbEwFitting::DrawFlange` | +| 1,349 | 3.15% | `CoreCommand.arx!AecDbEwPipeBase::Draw3d` | +| 1,315 | 3.07% | `CoreCommand.arx!CoreTools::RegionToString` | +| 1,298 | 3.03% | `AecRxBase.arx!GiDrawUtility::DrawRevolve` | + +### 驱动 Parasolid(建模内核)的我们的函数 + +| 采样 | 占比 | 模块!函数 | +|---:|---:|---| +| 5,378 | 12.54% | `AecRxBase.arx!GiDrawUtility::DrawPipe` | +| 4,104 | 9.57% | `AecRxBase.arx!AcGiViewDraw::DrawEntity` | +| 2,483 | 5.79% | `AecRxBase.arx!GiDrawUtility::DrawLoft` | +| 1,236 | 2.88% | `CoreCommand.arx!AecDbEwEquipment::Draw3dSolid` | +| 1,017 | 2.37% | `CoreCommand.arx!AecDbEwPipeBase::RegionAcisInDwgInFields` | +| 939 | 2.19% | `CoreCommand.arx!CoreTools::StringToRegion` | +| 922 | 2.15% | `AecRxBase.arx!GiDrawUtility::DrawRevolve` | +| 821 | 1.91% | `CoreCommand.arx!AecDbBDPipeBase::GetBooleanPart3D` | +| 681 | 1.59% | `AecRxBase.arx!`anonymous namespace'::createRegion` | +| 524 | 1.22% | `CoreCommand.arx!AcDbX3dSolid::CreateExtrude` | +| 463 | 1.08% | `CoreCommand.arx!CoreTools::RegionToString` | +| 461 | 1.07% | `CoreCommand.arx!NewExtrude::makeSolid` | +| 452 | 1.05% | `CoreCommand.arx!TransformEntity` | +| 450 | 1.05% | `CoreCommand.arx!NewRevolve::makeSolid` | +| 401 | 0.93% | `CoreCommand.arx!AecDbEwPipeBase::RegionAcisoutDwgOutFields` | +| 216 | 0.50% | `CoreCommand.arx!AecDbGuardBar::Draw3d` | +| 176 | 0.41% | `CoreCommand.arx!AcDbX3dSolid::GetDraw3dSolid` | +| 148 | 0.35% | `CoreCommand.arx!NewLoft::makeSolid` | +| 103 | 0.24% | `AecRxBase.arx!MemOper::DELETE_PTR` | +| 103 | 0.24% | `CoreCommand.arx!AecDbX3dPart::CreateDraw3dSolid` | +| 100 | 0.23% | `CoreCommand.arx!MemOper::DELETE_PTR` | +| 93 | 0.22% | `AecRxBase.arx!GiDrawUtility::transfromRegion` | +| 73 | 0.17% | `CoreCommand.arx!AecDbEwPipeBase::Draw3d` | +| 72 | 0.17% | `CoreCommand.arx!AecDbEwPipeBase::copyFrom` | +| 70 | 0.16% | `CoreCommand.arx!AecDbEwFitting::GetSection` | + +## 独占自耗时 by 函数 + +| 采样 | 占比 | 模块!函数 / 模块+RVA | +|---:|---:|---| +| 611 | 1.42% | `ntdll.dll!RtlpLowFragHeapAllocFromContext` | +| 531 | 1.24% | `ASMBASE219A.dll!RVA 0x256a3 (无符号)` | +| 454 | 1.06% | `ASMBASE219A.dll!RVA 0x25697 (无符号)` | +| 367 | 0.86% | `ntdll.dll!RtlpFreeHeapInternal` | +| 306 | 0.71% | `ASMBASE219A.dll!RVA 0x1d76b (无符号)` | +| 233 | 0.54% | `ntdll.dll!RtlFlsGetValue` | +| 215 | 0.50% | `ASMBASE219A.dll!RVA 0x1d71e (无符号)` | +| 211 | 0.49% | `ntoskrnl.exe!MiFindEmptyAddressRangeDownTree` | +| 199 | 0.46% | `ntoskrnl.exe!ExpAcquireResourceSharedLite` | +| 181 | 0.42% | `ASMBASE219A.dll!RVA 0x1d760 (无符号)` | +| 173 | 0.40% | `ntoskrnl.exe!ExpInterlockedPopEntrySListResume` | +| 170 | 0.40% | `ntoskrnl.exe!KiPageFault` | +| 159 | 0.37% | `ntdll.dll!RtlpLfhFindClearBitAndSet` | +| 153 | 0.36% | `ntoskrnl.exe!KeAcquireInStackQueuedSpinLock` | +| 153 | 0.36% | `ntoskrnl.exe!ExAllocateHeapPool` | +| 141 | 0.33% | `ntdll.dll!RtlSetLastWin32Error` | +| 127 | 0.30% | `msvcr100.dll!0x00000000543b0331 (无符号)` | +| 123 | 0.29% | `ntoskrnl.exe!RtlpHpLfhSlotAllocate` | +| 117 | 0.27% | `ntdll.dll!RtlpAllocateHeapInternal` | +| 114 | 0.27% | `ntoskrnl.exe!ExReleasePushLockEx` | +| 112 | 0.26% | `KernelBase.dll!FlsGetValue` | +| 111 | 0.26% | `ntoskrnl.exe!RtlCompareUnicodeString` | +| 109 | 0.25% | `ntoskrnl.exe!ExpAcquireResourceExclusiveLite` | +| 108 | 0.25% | `ntoskrnl.exe!KiSystemServiceUser` | +| 108 | 0.25% | `msvcr100.dll!0x000000005436e45e (无符号)` | +| 102 | 0.24% | `ASMBASE219A.dll!RVA 0xddc7 (无符号)` | +| 99 | 0.23% | `ntdll.dll!RtlEnterCriticalSection` | +| 98 | 0.23% | `ntoskrnl.exe!ExFreeHeapPool` | +| 98 | 0.23% | `ntoskrnl.exe!ObpLookupObjectName` | +| 94 | 0.22% | `ntoskrnl.exe!MmCheckCachedPageStates` | +| 93 | 0.22% | `ntoskrnl.exe!ExReleasePushLockExclusiveEx` | +| 93 | 0.22% | `ntoskrnl.exe!ExpReleaseResourceSharedForThreadLite` | +| 90 | 0.21% | `ntoskrnl.exe!ExAcquirePushLockExclusiveEx` | +| 89 | 0.21% | `ntoskrnl.exe!ExReleaseResourceLite` | +| 84 | 0.20% | `ntoskrnl.exe!ExpReleaseResourceExclusiveForThreadLite` | +| 84 | 0.20% | `ntoskrnl.exe!ExAcquirePushLockSharedEx` | +| 84 | 0.20% | `AecRxBase.arx!std::_Tree::_Linsert` | +| 83 | 0.19% | `msvcr100.dll!0x000000005436e45a (无符号)` | +| 82 | 0.19% | `ntoskrnl.exe!FsRtlCompareNodeAndKey` | +| 81 | 0.19% | `ntoskrnl.exe!RtlpLookupFunctionEntryForStackWalks` | +| 80 | 0.19% | `ntoskrnl.exe!KeAbPostRelease` | +| 79 | 0.18% | `ntdll.dll!RtlLeaveCriticalSection` | +| 78 | 0.18% | `ntoskrnl.exe!CcGetVirtualAddress` | +| 76 | 0.18% | `ntoskrnl.exe!RtlpHpSegPageRangeAllocate` | +| 74 | 0.17% | `ntoskrnl.exe!CcPinFileData` | +| 69 | 0.16% | `ntoskrnl.exe!HalpTscQueryCounterOrdered` | +| 69 | 0.16% | `FLTMGR.SYS!FltpPerformPreCallbacksWorker` | +| 65 | 0.15% | `ASMBASE219A.dll!RVA 0xaf95 (无符号)` | +| 64 | 0.15% | `KernelBase.dll!GetLocaleInfoHelper` | +| 62 | 0.14% | `ASMBASE219A.dll!RVA 0x1d768 (无符号)` | +| 60 | 0.14% | `Ntfs.sys!NtfsFileCompareValues` | +| 58 | 0.14% | `ASMBASE219A.dll!RVA 0x50a10 (无符号)` | +| 57 | 0.13% | `ntoskrnl.exe!SwapContext` | +| 56 | 0.13% | `ntoskrnl.exe!CcUnpinFileDataEx` | +| 55 | 0.13% | `KernelBase.dll!GetLastError` | +| 55 | 0.13% | `ASMBASE219A.dll!RVA 0x1dfc0 (无符号)` | +| 54 | 0.13% | `ASMBASE219A.dll!RVA 0x53db0 (无符号)` | +| 53 | 0.12% | `ntdll.dll!RtlAllocateHeap` | +| 53 | 0.12% | `Ntfs.sys!NtfsCheckMappingPairs` | +| 52 | 0.12% | `nvd3dumx.dll!RVA 0x18496e (无符号)` | + +## 栈内出现率(inclusive) + +| 采样 | 占比 | 项 | +|---:|---:|---| +| 41,394 | 96.52% | `ntdll.dll` | +| 40,387 | 94.17% | `accore.dll` | +| 40,119 | 93.54% | `mfc100u.dll` | +| 39,924 | 93.09% | `acad.exe` | +| 39,860 | 92.94% | `kernel32.dll` | +| 39,830 | 92.87% | `user32.dll` | +| 38,013 | 88.63% | `comctl32.dll` | +| 37,794 | 88.12% | `AdApplicationFrame.dll` | +| 36,575 | 85.28% | `acdb19.dll` | +| 35,849 | 83.59% | `CoreCommand.arx` | +| 33,213 | 77.44% | `AecRxBase.arx` | +| 26,342 | 61.42% | `modlr19.dll` | +| 18,144 | 42.31% | `ASMKERN219A.dll` | +| 11,018 | 25.69% | `ntoskrnl.exe` | +| 9,161 | 21.36% | `ASMBASE219A.dll` | +| 8,548 | 19.93% | `KernelBase.dll` | +| 8,078 | 18.84% | `msvcr100.dll` | +| 6,713 | 15.65% | `ASMINTR219A.dll` | +| 6,643 | 15.49% | `ASMSWP219A.dll` | +| 5,757 | 13.42% | `FLTMGR.SYS` | +| 4,532 | 10.57% | `ac1st19.dll` | +| 4,213 | 9.82% | `ASMBOOL219A.dll` | +| 3,831 | 8.93% | `Ntfs.sys` | +| 3,371 | 7.86% | `win32u.dll` | +| 3,347 | 7.80% | `win32k.sys` | +| 3,327 | 7.76% | `win32kfull.sys` | +| 2,406 | 5.61% | `ASMSKIN219A.dll` | +| 1,875 | 4.37% | `win32kbase.sys` | +| 1,655 | 3.86% | `WdFilter.sys` | +| 1,378 | 3.21% | `ASMCSTR219A.dll` | +| 1,299 | 3.03% | `adui19.dll` | +| 1,068 | 2.49% | `gdi32full.dll` | +| 871 | 2.03% | `shell32.dll` | +| 832 | 1.94% | `gdi32.dll` | +| 831 | 1.94% | `clr.dll` | +| 764 | 1.78% | `luafv.sys` | +| 650 | 1.52% | `WindowsBase.ni.dll` | +| 627 | 1.46% | `dswhip.dll` | +| 610 | 1.42% | `ASMCOVR219A.dll` | +| 609 | 1.42% | `ad19asm219.dll` | + +## 线程分布 + +| 采样 | 占比 | 线程 | 该线程主要自耗时模块 | +|---:|---:|---|---| +| 42,025 | 97.99% | tid 10816 | ASMKERN219A.dll:9325, ASMBASE219A.dll:7075, ntoskrnl.exe:6581 | +| 274 | 0.64% | tid 7636 | dswhip.dll:173, ntdll.dll:43, ntoskrnl.exe:32 | +| 192 | 0.45% | tid 6480 | nvd3dumx.dll:101, ntoskrnl.exe:32, nvlddmkm.sys:24 | +| 132 | 0.31% | tid 18884 | ntoskrnl.exe:70, ntdll.dll:18, KernelBase.dll:10 | +| 115 | 0.27% | tid 15888 | wpfgfx_v0400.dll:32, nvd3dumx.dll:21, ntoskrnl.exe:20 | +| 25 | 0.06% | tid 6000 | ntoskrnl.exe:11, ntdll.dll:4, windows.storage.dll:3 | +| 24 | 0.06% | tid 13868 | ntoskrnl.exe:13, ntdll.dll:3, AcSignCore16.dll:3 | +| 18 | 0.04% | tid 9324 | ntoskrnl.exe:10, ntdll.dll:4, AcSignCore16.dll:2 | +| 16 | 0.04% | tid 14092 | ntoskrnl.exe:8, ntdll.dll:3, FLTMGR.SYS:2 | +| 14 | 0.03% | tid 17636 | ntoskrnl.exe:6, nvoglv64.dll:6, win32kbase.sys:1 | +| 12 | 0.03% | tid 19348 | ntoskrnl.exe:9, ntdll.dll:1, nvlddmkm.sys:1 | +| 7 | 0.02% | tid 7144 | combase.dll:3, ntoskrnl.exe:2, ntdll.dll:1 | +| 5 | 0.01% | tid 8996 | | +| 4 | 0.01% | tid 7072 | | +| 3 | 0.01% | tid 6628 | | + +## 主干调用链(模块级,重复折叠) + +- ` 3.86%` (1,655) ASMKERN219A.dll <- ASMINTR219A.dll <- modlr19.dll <- acdb19.dll <- accore.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll +- ` 3.84%` (1,649) ASMKERN219A.dll <- ASMSWP219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 1.89%` (811) ASMKERN219A.dll <- ASMSKIN219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 1.70%` (728) ASMBASE219A.dll <- ASMKERN219A.dll <- ASMINTR219A.dll <- modlr19.dll <- acdb19.dll <- accore.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll +- ` 1.51%` (648) ASMKERN219A.dll <- modlr19.dll <- acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll <- acad.exe <- mfc100u.dll +- ` 1.34%` (574) ASMKERN219A.dll <- ASMBOOL219A.dll <- modlr19.dll <- acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll <- acad.exe +- ` 1.32%` (568) AecRxBase.arx <- CoreCommand.arx <- acdb19.dll <- accore.dll <- acad.exe <- mfc100u.dll <- acad.exe <- mfc100u.dll <- acad.exe <- mfc100u.dll <- user32.dll +- ` 1.31%` (563) ASMBASE219A.dll <- ASMKERN219A.dll <- modlr19.dll <- acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll <- acad.exe +- ` 1.00%` (427) ASMBASE219A.dll <- ASMKERN219A.dll <- ASMSWP219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll +- ` 0.99%` (424) ASMKERN219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll <- acad.exe +- ` 0.94%` (402) ASMINTR219A.dll <- modlr19.dll <- acdb19.dll <- accore.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 0.92%` (395) acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll <- acad.exe <- mfc100u.dll <- acad.exe <- mfc100u.dll +- ` 0.84%` (360) msvcr100.dll <- ASMKERN219A.dll <- modlr19.dll <- acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll <- acad.exe +- ` 0.83%` (356) ASMBASE219A.dll <- ASMINTR219A.dll <- modlr19.dll <- acdb19.dll <- accore.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll +- ` 0.80%` (344) ASMBASE219A.dll <- ASMKERN219A.dll <- ASMBOOL219A.dll <- modlr19.dll <- acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 0.80%` (343) ntoskrnl.exe <- Ntfs.sys <- ntoskrnl.exe <- FLTMGR.SYS <- ntoskrnl.exe +- ` 0.74%` (318) ASMBASE219A.dll <- ASMKERN219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 0.74%` (316) ASMBOOL219A.dll <- modlr19.dll <- acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll <- acad.exe <- mfc100u.dll +- ` 0.72%` (308) ntoskrnl.exe <- Ntfs.sys <- ntoskrnl.exe <- FLTMGR.SYS <- ntoskrnl.exe <- ntdll.dll <- KernelBase.dll <- mfc100u.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll +- ` 0.69%` (297) accore.dll <- modlr19.dll <- acdb19.dll <- accore.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 0.68%` (290) ASMBASE219A.dll <- ASMSWP219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 0.66%` (282) msvcr100.dll <- ASMKERN219A.dll <- ASMINTR219A.dll <- modlr19.dll <- acdb19.dll <- accore.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll +- ` 0.61%` (262) msvcr100.dll <- ASMBASE219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 0.61%` (261) ASMKERN219A.dll <- ASMINTR219A.dll <- ASMSKIN219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll +- ` 0.60%` (258) ASMKERN219A.dll <- ASMCSTR219A.dll <- ASMSKIN219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll +- ` 0.59%` (255) ASMBASE219A.dll <- modlr19.dll <- acdb19.dll <- ac1st19.dll <- acdb19.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll <- accore.dll +- ` 0.55%` (238) ntoskrnl.exe <- Ntfs.sys <- ntoskrnl.exe <- FLTMGR.SYS <- ntoskrnl.exe <- ntdll.dll <- KernelBase.dll <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll +- ` 0.52%` (221) msvcr100.dll <- ASMBASE219A.dll <- ASMSWP219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll +- ` 0.50%` (216) ntoskrnl.exe <- Ntfs.sys <- ntoskrnl.exe <- FLTMGR.SYS <- ntoskrnl.exe <- ntdll.dll <- KernelBase.dll <- mfc100u.dll <- CoreCommand.arx <- acdb19.dll <- accore.dll +- ` 0.49%` (211) ASMBASE219A.dll <- ASMKERN219A.dll <- ASMSKIN219A.dll <- modlr19.dll <- acdb19.dll <- AecRxBase.arx <- CoreCommand.arx <- AecRxBase.arx <- acdb19.dll <- accore.dll <- acdb19.dll + +## 关键调用点(被关注模块的直接调用方) + +### Parasolid + +| 采样 | 占比 | 调用方 | +|---:|---:|---| +| 4,810 | 11.22% | `modlr19.dll!RVA 0x3c289 (无符号)` | +| 3,626 | 8.45% | `modlr19.dll!RVA 0xeaa0 (无符号)` | +| 2,106 | 4.91% | `modlr19.dll!RVA 0x4cf51 (无符号)` | +| 1,757 | 4.10% | `modlr19.dll!RVA 0x327b5 (无符号)` | +| 1,560 | 3.64% | `modlr19.dll!RVA 0x35224 (无符号)` | +| 1,429 | 3.33% | `modlr19.dll!RVA 0x425fd (无符号)` | +| 1,021 | 2.38% | `modlr19.dll!RVA 0x49a26 (无符号)` | +| 703 | 1.64% | `modlr19.dll!RVA 0x352af (无符号)` | +| 582 | 1.36% | `modlr19.dll!RVA 0x39292 (无符号)` | +| 560 | 1.31% | `modlr19.dll!RVA 0x37fab (无符号)` | +| 503 | 1.17% | `modlr19.dll!RVA 0x35ca1 (无符号)` | +| 382 | 0.89% | `modlr19.dll!RVA 0x2bbc6 (无符号)` | +| 337 | 0.79% | `modlr19.dll!RVA 0x42634 (无符号)` | +| 311 | 0.73% | `modlr19.dll!RVA 0x390fd (无符号)` | +| 205 | 0.48% | `modlr19.dll!RVA 0x19a90 (无符号)` | + +### sqliteserver.dll + +| 采样 | 占比 | 调用方 | +|---:|---:|---| +| 25 | 0.06% | `CoreCommand.arx!`anonymous namespace'::QueryPipeSysStyle` | +| 2 | 0.00% | `CoreCommand.arx!CoreTools::getCurrentPipeSysTblName` | + +### sqlite3_x64.dll + +| 采样 | 占比 | 调用方 | +|---:|---:|---| +| 23 | 0.05% | `CoreCommand.arx!`anonymous namespace'::QueryPipeSysStyle` | +| 2 | 0.00% | `CoreCommand.arx!CoreTools::getCurrentPipeSysTblName` | + +## 时间线(每秒采样数 + 主导模块) + +``` +t= 0s 226 ##### ntoskrnl:58 win32kbase.sys:43 win32kfull.sys:30 +t= 1s 70 # ntoskrnl:20 win32kbase.sys:11 ntdll:5 +t= 2s 34 ntoskrnl:8 win32kfull.sys:7 win32kbase.sys:5 +t= 3s 65 # ntoskrnl:17 win32kbase.sys:10 user32:6 +t= 5s 32 ntoskrnl:16 win32kbase.sys:6 ntdll:4 +t= 8s 21 ntoskrnl:4 gdi32full:3 win32kbase.sys:3 +t= 12s 40 # ntoskrnl:9 win32kbase.sys:7 win32kfull.sys:5 +t= 15s 53 # ntoskrnl:16 win32kbase.sys:8 win32kfull.sys:6 +t= 16s 81 ## ntoskrnl:25 win32kfull.sys:14 win32kbase.sys:13 +t= 17s 79 # ntoskrnl:22 win32kbase.sys:14 nvd3dumx:10 +t= 18s 49 # ntoskrnl:9 win32kbase.sys:5 nvd3dumx:5 +t= 22s 123 ### ntoskrnl:34 win32kfull.sys:16 win32kbase.sys:13 +t= 23s 349 ######## ntoskrnl:104 win32kfull.sys:56 win32kbase.sys:49 +t= 24s 48 # ntoskrnl:10 win32kfull.sys:9 win32kbase.sys:7 +t= 32s 332 ######## ntoskrnl:88 win32kbase.sys:43 win32kfull.sys:30 +t= 33s 224 ##### ntoskrnl:42 clr:22 user32:17 +t= 34s 718 ################# ntoskrnl:237 clr:63 ntdll:51 +t= 35s 247 ###### ntoskrnl:78 win32kbase.sys:33 win32kfull.sys:27 +t= 36s 241 ###### ntoskrnl:83 win32kbase.sys:34 ntdll:23 +t= 37s 138 ### ntoskrnl:64 win32kbase.sys:16 win32kfull.sys:13 +t= 38s 99 ## ntoskrnl:37 win32kfull.sys:8 win32kbase.sys:8 +t= 39s 140 ### ntoskrnl:49 win32kbase.sys:19 win32kfull.sys:16 +t= 40s 188 #### ntoskrnl:50 win32kfull.sys:25 win32kbase.sys:15 +t= 41s 753 ################## ASMBASE219A:170 ASMKERN219A:156 acdb19:91 +t= 42s 669 ################ ntoskrnl:150 ASMKERN219A:117 ASMBASE219A:104 +t= 43s 763 ################### ASMKERN219A:211 ASMBASE219A:159 ntoskrnl:79 +t= 44s 757 ################## ASMKERN219A:183 ASMBASE219A:139 ntoskrnl:106 +t= 45s 628 ############### ASMKERN219A:151 ntoskrnl:102 ASMBASE219A:101 +t= 46s 456 ########### ntoskrnl:97 ASMBASE219A:92 ASMKERN219A:71 +t= 47s 576 ############## ntoskrnl:172 ASMKERN219A:79 ASMBASE219A:74 +t= 48s 654 ################ ASMKERN219A:200 ASMBASE219A:139 ntoskrnl:66 +t= 49s 582 ############## ASMKERN219A:165 ASMBASE219A:114 ntoskrnl:64 +t= 50s 496 ############ ASMKERN219A:141 ASMBASE219A:102 msvcr100:67 +t= 51s 786 ################### ASMKERN219A:260 ASMBASE219A:203 msvcr100:85 +t= 52s 453 ########### ASMKERN219A:121 ASMBASE219A:98 ntoskrnl:54 +t= 53s 589 ############## ASMKERN219A:155 ASMBASE219A:145 ntoskrnl:71 +t= 54s 531 ############# ntoskrnl:140 ASMKERN219A:90 ASMBASE219A:76 +t= 55s 625 ############### ntoskrnl:176 ASMKERN219A:96 ASMBASE219A:77 +t= 56s 478 ########### ntoskrnl:130 ASMBASE219A:79 ASMKERN219A:67 +t= 57s 552 ############# ntoskrnl:136 ASMBASE219A:82 ASMKERN219A:77 +t= 58s 877 ##################### ASMKERN219A:315 ASMBASE219A:232 msvcr100:107 +t= 59s 613 ############### ASMKERN219A:171 ASMBASE219A:156 msvcr100:60 +t= 60s 297 ####### ntoskrnl:65 ASMBASE219A:54 ASMKERN219A:44 +t= 61s 295 ####### ntoskrnl:69 ASMKERN219A:54 ASMBASE219A:35 +t= 62s 517 ############ ntoskrnl:112 ASMKERN219A:89 ASMBASE219A:74 +t= 63s 545 ############# ntoskrnl:125 ASMKERN219A:99 ASMBASE219A:74 +t= 64s 500 ############ ASMKERN219A:147 ASMBASE219A:121 ntoskrnl:46 +t= 65s 493 ############ ASMBASE219A:142 ASMKERN219A:118 ntoskrnl:66 +t= 66s 482 ############ ASMKERN219A:124 ASMBASE219A:111 ntoskrnl:65 +t= 67s 484 ############ ASMBASE219A:132 ASMKERN219A:112 ntoskrnl:62 +t= 68s 509 ############ ASMBASE219A:137 ASMKERN219A:120 ntoskrnl:70 +t= 69s 490 ############ ASMKERN219A:122 ASMBASE219A:120 ntoskrnl:63 +t= 70s 497 ############ ASMKERN219A:184 ASMBASE219A:90 ntoskrnl:59 +t= 71s 665 ################ ASMKERN219A:316 ASMBASE219A:118 msvcr100:59 +t= 72s 646 ################ ASMKERN219A:304 ASMBASE219A:97 msvcr100:67 +t= 73s 506 ############ ASMKERN219A:195 ASMBASE219A:95 ntoskrnl:56 +t= 74s 298 ####### ntoskrnl:76 ASMBASE219A:51 ASMKERN219A:43 +t= 75s 299 ####### ntoskrnl:62 ASMBASE219A:48 ASMKERN219A:39 +t= 76s 299 ####### ntoskrnl:74 ASMBASE219A:55 ASMKERN219A:43 +t= 77s 286 ####### ntoskrnl:72 ASMBASE219A:43 ASMKERN219A:35 +t= 78s 416 ########## ASMKERN219A:97 ASMBASE219A:87 ntoskrnl:68 +t= 79s 555 ############# ASMKERN219A:139 ASMBASE219A:115 ntoskrnl:73 +t= 80s 714 ################# ASMKERN219A:212 ASMBASE219A:151 ntoskrnl:76 +t= 81s 685 ################# ASMKERN219A:227 ASMBASE219A:134 ntoskrnl:62 +t= 82s 701 ################# ASMKERN219A:398 ASMBASE219A:117 msvcr100:65 +t= 83s 320 ######## ntoskrnl:66 ASMKERN219A:63 ASMBASE219A:51 +t= 84s 283 ####### ntoskrnl:75 ASMBASE219A:42 ASMKERN219A:36 +t= 85s 284 ####### ntoskrnl:81 ASMBASE219A:43 ASMKERN219A:31 +t= 86s 331 ######## ntoskrnl:77 ASMBASE219A:67 ASMKERN219A:49 +t= 87s 328 ######## ntoskrnl:70 ASMBASE219A:51 ASMKERN219A:48 +t= 88s 603 ############### ASMKERN219A:236 ASMBASE219A:93 ntoskrnl:69 +t= 89s 695 ################# ASMKERN219A:365 ASMBASE219A:103 msvcr100:60 +t= 90s 513 ############ ASMKERN219A:139 ASMBASE219A:96 ntoskrnl:61 +t= 91s 632 ############### ASMKERN219A:132 ASMBASE219A:112 ntoskrnl:98 +t= 92s 342 ######## ntoskrnl:76 ASMBASE219A:54 ASMKERN219A:49 +t= 93s 298 ####### ntoskrnl:76 ASMBASE219A:47 ASMKERN219A:46 +t= 94s 278 ###### ntoskrnl:66 ASMBASE219A:61 ASMKERN219A:32 +t= 95s 293 ####### ntoskrnl:73 ASMBASE219A:48 ASMKERN219A:37 +t= 96s 725 ################## ASMKERN219A:185 ASMBASE219A:171 msvcr100:70 +t= 97s 850 ##################### ASMKERN219A:255 ASMBASE219A:187 msvcr100:84 +t= 98s 935 ####################### ASMKERN219A:295 ASMBASE219A:256 msvcr100:96 +t= 99s 842 ##################### ASMKERN219A:224 ASMBASE219A:189 msvcr100:62 +t= 100s 847 ##################### ASMKERN219A:238 ASMBASE219A:220 msvcr100:91 +t= 101s 858 ##################### ASMKERN219A:237 ASMBASE219A:191 msvcr100:97 +t= 102s 866 ##################### ASMKERN219A:239 ASMBASE219A:188 msvcr100:92 +t= 103s 901 ###################### ASMKERN219A:208 ASMBASE219A:183 msvcr100:90 +t= 104s 482 ############ ntoskrnl:155 AecRxBase.arx:64 ntdll:54 +t= 105s 429 ########## ntoskrnl:129 ntdll:57 acdb19:51 +t= 106s 514 ############ ntoskrnl:137 AecRxBase.arx:80 ntdll:67 +t= 107s 544 ############# ntoskrnl:158 ntdll:101 AecRxBase.arx:66 +t= 108s 323 ######## ntoskrnl:81 ntdll:46 AecRxBase.arx:38 +t= 109s 920 ####################### accore:170 dswhip:119 acdb19:108 +t= 110s 245 ###### ntoskrnl:55 clr:34 win32kbase.sys:26 +t= 112s 463 ########### dswhip:100 ntoskrnl:81 accore:39 +t= 113s 163 #### user32:31 ntoskrnl:27 mfc100u:24 +t= 114s 118 ## ntoskrnl:29 user32:16 mfc100u:10 +```