Backed out 9 changesets (bug 1846848) for causing multiple build bustages. CLOSED...
[gecko.git] / dom / base / mach_commands.py
blob333d187b51721a569867f0636cb9a64cf52ddcd5
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
8 @Command(
9 "gen-use-counter-metrics",
10 category="misc",
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
15 import sys
16 from os import path
18 sys.path.append(path.dirname(__file__))
19 from usecounters import gen_use_counter_metrics
21 return gen_use_counter_metrics()