Selaa lähdekoodia

Collect metrics for 'git nav-downstream'

Check that everything works with git nav-downstream, which we're not afraid of breaking

Bug: 832386
Change-Id: I7c7561c749bc72cc12804c4ebce8f827ed8be02b
Reviewed-on: https://chromium-review.googlesource.com/1134518
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Edward Lemur 7 vuotta sitten
vanhempi
commit
8a2e331aa7
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 2
      gclient.py
  2. 2 0
      git_nav_downstream.py

+ 1 - 2
gclient.py

@@ -2845,8 +2845,7 @@ def CMDverify(parser, args):
 
 
 
 
 @subcommand.epilog("""For more information on what metrics are we collecting and
 @subcommand.epilog("""For more information on what metrics are we collecting and
-why, please read metrics.README.md or visit
-<short link to metrics.README.md in gitiles>.""")
+why, please read metrics.README.md or visit https://bit.ly/2ufRS4p""")
 def CMDmetrics(parser, args):
 def CMDmetrics(parser, args):
   """Reports, and optionally modifies, the status of metric collection."""
   """Reports, and optionally modifies, the status of metric collection."""
   parser.add_option('--opt-in', action='store_true', dest='enable_metrics',
   parser.add_option('--opt-in', action='store_true', dest='enable_metrics',

+ 2 - 0
git_nav_downstream.py

@@ -13,8 +13,10 @@ import argparse
 import sys
 import sys
 
 
 from git_common import current_branch, branches, upstream, run, hash_one
 from git_common import current_branch, branches, upstream, run, hash_one
+import metrics
 
 
 
 
+@metrics.collector.collect_metrics('git nav-downstream')
 def main(args):
 def main(args):
   parser = argparse.ArgumentParser()
   parser = argparse.ArgumentParser()
   parser.add_argument('--pick',
   parser.add_argument('--pick',