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

login
register
mail settings
Submitter phabricator
Date June 13, 2019, 2:17 a.m.
Message ID <differential-rev-PHID-DREV-kwpynr74q7svc6nos7rd-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/40469/
State New
Headers show

Comments

phabricator - June 13, 2019, 2:17 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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 (
@@ -901,6 +903,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: