in probe_scraper/parsers/events.py [0:0]
def parse(self, filenames, version=None, channel=None):
# Events.yaml had a format change in 53, see bug 1329620.
# We don't have important event usage yet, so lets skip
# backwards compatibility for now.
if (version and channel) and (
(
(channel != "nightly" and version < 53)
or (channel == "nightly" and version < 54)
)
):
return {}
if len(filenames) > 1:
raise Exception("We don't support loading from more than one file.")
events = parse_events.load_events(filenames[0], strict_type_checks=False)
# Get the probe information in a standard format.
out = {}
for e in events:
full_name = e.category + "." + e.methods[0]
if getattr(e, "name", None):
full_name += "#" + e.name
out[full_name] = extract_events_data(e)
return out