什么级别是';最后一级缓存未命中';在Visual Studio中';谁是剖析器? 我正在理解我们的C++应用程序中是否存在缓存使用问题。p>
为此,我正在了解如何使用Visual Studio 2013提供的信息。(我不熟悉优化和分析领域。) 多亏了一篇很棒的kickstart文章,我找到了有关我的系统的以下信息:什么级别是';最后一级缓存未命中';在Visual Studio中';谁是剖析器? 我正在理解我们的C++应用程序中是否存在缓存使用问题。p>,c++,visual-studio-2013,profiling,C++,Visual Studio 2013,Profiling,为此,我正在了解如何使用Visual Studio 2013提供的信息。(我不熟悉优化和分析领域。) 多亏了一篇很棒的kickstart文章,我找到了有关我的系统的以下信息: Logical Processor to Cache Map: **------ Data Cache 0, Level 1, 32 KB, Assoc 8, LineSize 64 **------ Instruction Cache 0, Level 1, 32 KB, Asso
Logical Processor to Cache Map:
**------ Data Cache 0, Level 1, 32 KB, Assoc 8, LineSize 64
**------ Instruction Cache 0, Level 1, 32 KB, Assoc 8, LineSize 64
**------ Unified Cache 0, Level 2, 256 KB, Assoc 8, LineSize 64
******** Unified Cache 1, Level 3, 8 MB, Assoc 16, LineSize 64
--**---- Data Cache 1, Level 1, 32 KB, Assoc 8, LineSize 64
--**---- Instruction Cache 1, Level 1, 32 KB, Assoc 8, LineSize 64
--**---- Unified Cache 2, Level 2, 256 KB, Assoc 8, LineSize 64
----**-- Data Cache 2, Level 1, 32 KB, Assoc 8, LineSize 64
----**-- Instruction Cache 2, Level 1, 32 KB, Assoc 8, LineSize 64
----**-- Unified Cache 3, Level 2, 256 KB, Assoc 8, LineSize 64
------** Data Cache 3, Level 1, 32 KB, Assoc 8, LineSize 64
------** Instruction Cache 3, Level 1, 32 KB, Assoc 8, LineSize 64
------** Unified Cache 4, Level 2, 256 KB, Assoc 8, LineSize 64
这让我相信最后一个缓存级别是L3,一个8MB的缓存,在我的所有内核中共享
但是,如果我运行VSPerfCmd
:
C:\Windows\system32>VSPerfCmd /querycounters
Portable counters:
InstructionsRetired
NonHaltedCycles
---> L2Misses <----
L2References
ITLBMisses
BranchesRetired
MispredictedBranches
Platform counters:
DCULinesIn
DCUModifiedLinesIn
DCULinesOut
[...]
C:\Windows\system32>VSPerfCmd/querycounters
便携式计数器:
指示退休
无中断周期
--->12弥撒