Patchwork D7742: perf: fix the time measurement for pathcopies relative to p2

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 10:02 p.m.
Message ID <737940e53a2a02e667e91a3674d568f3@localhost.localdomain>
Download mbox | patch
Permalink /patch/44086/
State Not Applicable
Headers show

Comments

phabricator - Dec. 27, 2019, 10:02 p.m.
Closed by commit rHGa2ad5aeedfdf: perf: fix the time measurement for pathcopies relative to p2 (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7742?vs=18958&id=18973

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

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

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS




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

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -2048,8 +2048,8 @@ 
                 data['p1.time'] = end - begin
                 begin = util.timer()
                 p2renames = copies.pathcopies(b, p2)
+                end = util.timer()
                 data['p2.time'] = end - begin
-                end = util.timer()
                 data['p1.renamedfiles'] = len(p1renames)
                 data['p2.renamedfiles'] = len(p2renames)