sapling/fastmanifest
Jun Wu b75516fcff fastmanifest: do not store ui in metricscollector
Summary:
This diff removes `self.ui = ui` in metricscollector to address stale ui
issues with chg. Also clean up unnecessary sample merges since there is
only one collector per process.

Test Plan:
Run with `fastmanifest.debugmetrics=1` and confirm see lines like:

  [FM-METRICS] Begin metrics
  [FM-METRICS] kind: cachehitratio, kwargs: [('ratio', 100.0)]
  [FM-METRICS] kind: diffcachehitratio, kwargs: [('ratio', -1)]
  [FM-METRICS] kind: filesnotincachehitratio, kwargs: [('ratio', 0.0)]
  [FM-METRICS] End metrics

Reviewers: #mercurial, ttung, lcharignon

Reviewed By: lcharignon

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3504442

Signature: t1:3504442:1467311563:5904bd06b210fa8550b2e1f7e85c2133ad7a1a0e
2016-06-30 11:51:06 -07:00
..
__init__.py fastmanifest: do not store ui in metricscollector 2016-06-30 11:51:06 -07:00
cachemanager.py fastmanifest: do not store ui in metricscollector 2016-06-30 11:51:06 -07:00
concurrency.py [fastmanifest] update comment to reflect the ugly truth 2016-06-24 16:13:21 -07:00
constants.py fastmanifest: add documentation of constants 2016-06-08 14:28:14 -07:00
debug.py [fastmanifest] move remaining fastmanifest.py code to debug.py 2016-05-26 17:05:19 -07:00
implementation.py fastmanifest: do not store ui in metricscollector 2016-06-30 11:51:06 -07:00
metrics.py fastmanifest: do not store ui in metricscollector 2016-06-30 11:51:06 -07:00