1[
2    {
3        "BriefDescription": "Instructions Per Cycle (per logical thread)",
4        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
5        "MetricGroup": "TopDownL1",
6        "MetricName": "IPC"
7    },
8    {
9        "BriefDescription": "Uops Per Instruction",
10        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
11        "MetricGroup": "Pipeline",
12        "MetricName": "UPI"
13    },
14    {
15        "BriefDescription": "Rough Estimation of fraction of fetched lines bytes that were likely consumed by program instructions",
16        "MetricExpr": "min( 1 , UOPS_ISSUED.ANY / ( (UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY) * 32 * ( ICACHE.HIT + ICACHE.MISSES ) / 4) )",
17        "MetricGroup": "Frontend",
18        "MetricName": "IFetch_Line_Utilization"
19    },
20    {
21        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded Icache; or Uop Cache)",
22        "MetricExpr": "IDQ.DSB_UOPS / ( IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS )",
23        "MetricGroup": "DSB; Frontend_Bandwidth",
24        "MetricName": "DSB_Coverage"
25    },
26    {
27        "BriefDescription": "Cycles Per Instruction (threaded)",
28        "MetricExpr": "1 / (INST_RETIRED.ANY / cycles)",
29        "MetricGroup": "Pipeline;Summary",
30        "MetricName": "CPI"
31    },
32    {
33        "BriefDescription": "Per-thread actual clocks when the logical processor is active. This is called 'Clockticks' in VTune.",
34        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
35        "MetricGroup": "Summary",
36        "MetricName": "CLKS"
37    },
38    {
39        "BriefDescription": "Total issue-pipeline slots",
40        "MetricExpr": "4*(( CPU_CLK_UNHALTED.THREAD_ANY / 2 ) if #SMT_on else cycles)",
41        "MetricGroup": "TopDownL1",
42        "MetricName": "SLOTS"
43    },
44    {
45        "BriefDescription": "Total number of retired Instructions",
46        "MetricExpr": "INST_RETIRED.ANY",
47        "MetricGroup": "Summary",
48        "MetricName": "Instructions"
49    },
50    {
51        "BriefDescription": "Instructions Per Cycle (per physical core)",
52        "MetricExpr": "INST_RETIRED.ANY / (( CPU_CLK_UNHALTED.THREAD_ANY / 2 ) if #SMT_on else cycles)",
53        "MetricGroup": "SMT",
54        "MetricName": "CoreIPC"
55    },
56    {
57        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is at least 1 uop executed)",
58        "MetricExpr": "UOPS_DISPATCHED.THREAD / (( cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@ / 2) if #SMT_on else cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@)",
59        "MetricGroup": "Pipeline;Ports_Utilization",
60        "MetricName": "ILP"
61    },
62    {
63        "BriefDescription": "Core actual clocks when any thread is active on the physical core",
64        "MetricExpr": "( CPU_CLK_UNHALTED.THREAD_ANY / 2 ) if #SMT_on else CPU_CLK_UNHALTED.THREAD",
65        "MetricGroup": "SMT",
66        "MetricName": "CORE_CLKS"
67    },
68    {
69        "BriefDescription": "Average CPU Utilization",
70        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
71        "MetricGroup": "Summary",
72        "MetricName": "CPU_Utilization"
73    },
74    {
75        "BriefDescription": "Giga Floating Point Operations Per Second",
76        "MetricExpr": "(( 1*( FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE ) + 2* FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4*( FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE ) + 8* SIMD_FP_256.PACKED_SINGLE )) / 1000000000 / duration_time",
77        "MetricGroup": "FLOPS;Summary",
78        "MetricName": "GFLOPs"
79    },
80    {
81        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
82        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
83        "MetricGroup": "Power",
84        "MetricName": "Turbo_Utilization"
85    },
86    {
87        "BriefDescription": "Fraction of cycles where both hardware threads were active",
88        "MetricExpr": "1 - CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE / ( CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY / 2 ) if #SMT_on else 0",
89        "MetricGroup": "SMT;Summary",
90        "MetricName": "SMT_2T_Utilization"
91    },
92    {
93        "BriefDescription": "Fraction of cycles spent in Kernel mode",
94        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC:u / CPU_CLK_UNHALTED.REF_TSC",
95        "MetricGroup": "Summary",
96        "MetricName": "Kernel_Utilization"
97    },
98    {
99        "BriefDescription": "C3 residency percent per core",
100        "MetricExpr": "(cstate_core@c3\\-residency@ / msr@tsc@) * 100",
101        "MetricGroup": "Power",
102        "MetricName": "C3_Core_Residency"
103    },
104    {
105        "BriefDescription": "C6 residency percent per core",
106        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
107        "MetricGroup": "Power",
108        "MetricName": "C6_Core_Residency"
109    },
110    {
111        "BriefDescription": "C7 residency percent per core",
112        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
113        "MetricGroup": "Power",
114        "MetricName": "C7_Core_Residency"
115    },
116    {
117        "BriefDescription": "C2 residency percent per package",
118        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
119        "MetricGroup": "Power",
120        "MetricName": "C2_Pkg_Residency"
121    },
122    {
123        "BriefDescription": "C3 residency percent per package",
124        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
125        "MetricGroup": "Power",
126        "MetricName": "C3_Pkg_Residency"
127    },
128    {
129        "BriefDescription": "C6 residency percent per package",
130        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
131        "MetricGroup": "Power",
132        "MetricName": "C6_Pkg_Residency"
133    },
134    {
135        "BriefDescription": "C7 residency percent per package",
136        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
137        "MetricGroup": "Power",
138        "MetricName": "C7_Pkg_Residency"
139    }
140]
141