Patchwork D6527: dirstate: add counter events for work queue depth

login
register
mail settings
Submitter phabricator
Date Sept. 23, 2019, 7:26 p.m.
Message ID <999fc41a9201c0b09173a3d3bd8d185c@localhost.localdomain>
Download mbox | patch
Permalink /patch/41739/
State Not Applicable
Headers show

Comments

phabricator - Sept. 23, 2019, 7:26 p.m.
durin42 updated this revision to Diff 16595.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6527?vs=16301&id=16595

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6527/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6527

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -15,6 +15,9 @@ 
 
 from .i18n import _
 from .node import nullid
+
+from hgdemandimport import tracing
+
 from . import (
     encoding,
     error,
@@ -921,6 +924,7 @@ 
         def traverse(work, alreadynormed):
             wadd = work.append
             while work:
+                tracing.counter('dirstate work', len(work))
                 nd = work.pop()
                 visitentries = match.visitchildrenset(nd)
                 if not visitentries: