toolkit/components/telemetry/Processes.yaml
author Georg Fritzsche <georg.fritzsche@googlemail.com>
Mon, 22 May 2017 15:33:29 +0700
changeset 359994 78e8b1f01c25b51564815772c4fa869cb38755b0
parent 358971 2a2750d4a4e912f2e41b5651bd79c78bfdc564a1
child 360010 c36497319158aaaf1ba7e28754e9b59b9cf3c441
permissions -rw-r--r--
Bug 1361661 - Part 1: Generate headers with process data from Processes.yaml. r=dexter Adding the Gecko enums to Processes.yaml allows us to generate mappings from ProcessID to GeckoProcessType. We generate string tables with the Telemetry process names, so we can use these names consistently throughout Telemetry.

# This lists the known child processes we collect Telemetry for.
# The entries are keyed with the names used in Telemetry internally, the same name that is used
# in the main pings payload, i.e. "payload/processes/<process name>". See:
# https://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/data/main-ping.html#processes
#
# For now this is only used to inform the data pipeline about new processes, but will be used to
# generate headers with C++ data later (enums, strings, ...).
parent:
  gecko_enum: GeckoProcessType_Default
  description: This is the main process. It is also known as the parent or chrome process.
content:
  gecko_enum: GeckoProcessType_Content
  description: This is for processes web content is rendered in.
extension:
  gecko_enum: GeckoProcessType_Content
  description: >
    This is the WebExtension process. It is a re-used content process, with the data submitted
    separately to avoid skewing other content process Telemetry.
gpu:
  gecko_enum: GeckoProcessType_GPU
  description: This is the compositor or GPU process.