[英]perf profiling in Linux
如果我要求性能perf list
告訴我可以做什么,它會說
LLC-loads [Hardware cache event]
LLC-load-misses [Hardware cache event]
LLC-stores [Hardware cache event]
LLC-store-misses [Hardware cache event]
LLC-prefetches [Hardware cache event]
LLC-prefetch-misses [Hardware cache event]
但是,如果我詢問perf stat -eLLC-load-misses ls
,它會告訴我
<not supported> LLC-load-misses
0,001647655 seconds time elapsed
是否支持? 我究竟做錯了什么?
計數器顯示為“不支持”可能有多種原因
以下是其中的幾個
您正在虛擬機內部的某些虛擬硬件上運行性能
體系結構本身沒有這樣的計數器。 您必須檢查架構規格以了解計數器是否受支持
PS:如果看到“未計數”,則意味着您需要為計數器啟用內核支持。 這不是您的情況。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.