The metrics module¶
Utilities to get metric informations out of the output of cube_dump -w.
The only useful piece of information about the metrics is, for now, the convertibility to inclusive.
-
metrics.get_inclusive_convertible_metrics(profile_file)¶ This function gets directly as list of metrics that are
INCLUSIVE convertible.
-
metrics.get_metric_info(lines)¶ Returns a list of tuples
(metric_short_name, convertibility_info)
-
metrics.parse_line(line)¶ Read a single line out of the cube_dump -w output.
- Parameters
line (str) – String in the format
PAPI_L1_ICM ( id=11, PAPI_L1_ICM, #, UINT64, , Level 1 instruction cache misses. [ L2_RQSTS:ALL_CODE_RD ], INCLUSIVE convertible, cacheable)- Returns
info – Tuple in the form
(PAPI_L1_ICM,"INCLUSIVE convertible")- Return type
Metric