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

login
register
mail settings
Submitter phabricator
Date June 17, 2019, 10:43 p.m.
Message ID <4b2a8b76ce4120d455af0867a1b2699d@localhost.localdomain>
Download mbox | patch
Permalink /patch/40569/
State Not Applicable
Headers show

Comments

phabricator - June 17, 2019, 10:43 p.m.
durin42 updated this revision to Diff 15563.

REPOSITORY
  rHG Mercurial

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

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
@@ -13,6 +13,8 @@ 
 import os
 import stat
 
+from hgdemandimport import tracing
+
 from .i18n import _
 from .node import nullid
 from . import (
@@ -908,6 +910,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: