def METHOD_NAME(self, context):
    normal = re.compile(r'(?P<value>\d*)(?P<unit>\w*)')
    with_pct = re.compile(r'(?P<value>\d*) \((?P<percent>.*)%\)')
    count = 0
    for line in self.output.splitlines():
        #Filters out "Success!" and blank lines
        try:
            metric, value_string = [p.strip() for p in line.split(':', 1)]
        except ValueError:
            continue
        # Filters out unwanted lines
        if metric in IGNORED_METRICS:
            continue
        if metric == "Janky frames":
            count += 1
            match = with_pct.match(value_string).groupdict()
            context.add_metric(metric,
                               match['value'],
                               None,
                               classifiers={"loop": count,
                                            "frames": self.frames})
            context.add_metric(metric + "_pct",
                               match['percent'],
                               "%",
                               classifiers={"loop": count,
                                            "frames": self.frames})
        else:
            match = normal.match(value_string).groupdict()
            context.add_metric(metric,
                               match['value'],
                               match['unit'],
                               classifiers={"loop": count,
                                            "frames": self.frames})