1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 from mach
.decorators
import Command
9 "gen-use-counter-metrics",
11 description
="Generate a Glean use_counter_metrics.yaml file, creating metrics definitions for every use counter.",
13 def gen_use_counter_metrics(command_context
):
14 # Dispatch to usecounters.py
18 sys
.path
.append(path
.dirname(__file__
))
19 from usecounters
import gen_use_counter_metrics
21 return gen_use_counter_metrics()