Searched refs:ParsePerfJson (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/perf/pmu-events/ |
H A D | metric_test.py | 7 from metric import ParsePerfJson 45 self.assertEqual(ParsePerfJson(before).ToPerfJson(), after) 51 self.assertEqual(ParsePerfJson(before).ToPerfJson(), after) 57 self.assertEqual(ParsePerfJson(before).ToPerfJson(), after) 62 self.assertEqual(ParsePerfJson(before).ToPerfJson(), after) 82 self.assertEqual(ParsePerfJson(before).ToPython(), after) 87 self.assertEqual(ParsePerfJson(before).ToPython(), after) 101 py = ParsePerfJson(before).ToPython() 161 before = [('cpu', 'm1', ParsePerfJson('a + b + c + d')), 162 ('cpu', 'm2', ParsePerfJson('a + b + c'))] [all …]
|
H A D | metric.py | 531 def ParsePerfJson(orig: str) -> Expression: function
|
H A D | jevents.py | 329 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
|