D4344: tracing: new module to make tracing events in hg easier

2018-08-28 Thread durin42 (Augie Fackler)
durin42 added a comment. > Per my comment in https://phab.mercurial-scm.org/D4342 https://phab.mercurial-scm.org/D4342, I think we should consider recording the timing from here so times aren't skewed due to the presence of pipe I/O. That will introduce some overhead in the traced process.

D4344: tracing: new module to make tracing events in hg easier

2018-08-24 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG284440041141: tracing: new module to make tracing events in hg easier (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D4344: tracing: new module to make tracing events in hg easier

2018-08-24 Thread indygreg (Gregory Szorc)
indygreg added inline comments. INLINE COMMENTS > tracing.py:31-34 > +_pipe.write('START %s %s\n' % (_session, whence)) > +yield > +finally: > +_pipe.write('END %s %s\n' % (_session, whence)) Per my comment in https://phab.mercurial-scm.org/D4342, I think we should

D4344: tracing: new module to make tracing events in hg easier

2018-08-21 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This lives in hgdemandimport because I want to instrument a bunch of low-level stuff including the bare `hg` script and demandimport, so it can't live at a