Name Description Size Coverage
gen_runtime_metrics.py Generate New Tab's runtime Glean metrics/pings JSON for train-hopping. Metrics and pings that exist in Nightly but not yet on the target channel can't be compiled into the older Firefox that an XPI train-hops onto, so they are registered at runtime from this payload. When generated, it is the diff of New Tab's local metrics.yaml and pings.yaml against the target channel's definitions. This is the build-time entry point for the GENERATED_FILES rules in ../moz.build; `mach newtab channel-metrics-diff` does the equivalent work for the manual path. The diff is only produced when MOZ_BROWSER_NEWTAB_METRICS_FETCH=1 is set, which fetches the channel definitions over the network and fails the build on error. Every other build writes an empty payload, since the metrics are only consumed once the XPI is train-hopped onto Beta or Release. 5177 -
glean_utils.py Given a tree of objects, output them to the file-like object `output_fd` in a format similar to runtime-metrics-sample.json. :param objs: A tree of objects (metrics and pings) as returned from `parser.parse_objects`. :param output_fd: Writeable file to write the output to. :param options: options dictionary, presently unused. 3788 -
runtime-metrics-sample.json 1186 -