perf vendor metrics intel: Make transaction metrics conditional
Make the transaction metrics conditional on the cycles-tx event being present. This event may not be present when TSX extensions have been disabled. Signed-off-by: Ian Rogers <irogers@google.com> Tested-by: Namhyung Kim <namhyung@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Eduard Zingerman <eddyz87@gmail.com> Cc: Sohom Datta <sohomdatta1@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Caleb Biggers <caleb.biggers@intel.com> Cc: Edward Baker <edward.baker@intel.com> Cc: Perry Taylor <perry.taylor@intel.com> Cc: Samantha Alt <samantha.alt@intel.com> Cc: Weilin Wang <weilin.wang@intel.com> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Andrii Nakryiko <andrii@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Jing Zhang <renyu.zj@linux.alibaba.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Zhengjun Xing <zhengjun.xing@linux.intel.com> Cc: John Garry <john.g.garry@oracle.com> Cc: Ingo Molnar <mingo@redhat.com> Link: https://lore.kernel.org/r/20230623151016.4193660-4-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
eadc0040a9
commit
8076dc8c68
@ -92,28 +92,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
@ -1830,28 +1830,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
@ -1516,28 +1516,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
@ -1812,28 +1812,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
@ -1938,28 +1938,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
@ -1466,28 +1466,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
@ -1774,28 +1774,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
@ -1530,28 +1530,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
"BriefDescription": "Percentage of cycles in aborted transactions.",
|
||||||
"MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
|
"MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_aborted_cycles",
|
"MetricName": "tsx_aborted_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
|
"MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_elision",
|
"MetricName": "tsx_cycles_per_elision",
|
||||||
"ScaleUnit": "1cycles / elision"
|
"ScaleUnit": "1cycles / elision"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
"BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
|
"MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_cycles_per_transaction",
|
"MetricName": "tsx_cycles_per_transaction",
|
||||||
"ScaleUnit": "1cycles / transaction"
|
"ScaleUnit": "1cycles / transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"BriefDescription": "Percentage of cycles within a transaction region.",
|
"BriefDescription": "Percentage of cycles within a transaction region.",
|
||||||
"MetricExpr": "cpu@cycles\\-t@ / cycles",
|
"MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
|
||||||
"MetricGroup": "transaction",
|
"MetricGroup": "transaction",
|
||||||
"MetricName": "tsx_transactional_cycles",
|
"MetricName": "tsx_transactional_cycles",
|
||||||
"ScaleUnit": "100%"
|
"ScaleUnit": "100%"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user