in perfrunbook/utilities/measure_aggregated_pmu_stats.py [0:0]
def _compute_stat(self, ctr1_df, ctr2_df, idx):
# Divide ctr1 by ctr2 matched up by indices over a preset value.
try:
s = (ctr1_df.loc[idx]["count"] / ctr2_df.loc[idx]["count"]) * self.scale # noqa
s = s.dropna()
return s
except Exception:
return None