sapling/hgext3rd
Mateusz Kwapich 1d2abfa980 statprof: change the hotpath to be less biased towards IO
Summary:
Let's use deltas between the subsequent samples instead of sample count
to count the time spent.

Rationale:
When the process is IO blocked the other thread doing the sampling can be waken
up much more often (GIL is not held) causing the profiler to collect much more
samples in that state.

Test Plan:
works in my sandbox
do we have any tests for statprof.py?

Reviewers: durham

Reviewed By: durham

Subscribers: quark, mjpieters, #mercurial

Differential Revision: https://phabricator.intern.facebook.com/D3551431

Signature: t1:3551431:1468543377:f6b86245c957dd59d0334dbb1898f6ad0bb8c617
2016-07-20 13:41:35 -07:00
..
__init__.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
arcdiff.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
backups.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
bundle2hooks.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
catnotate.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
chistedit.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
commitextras.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
dirsync.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
errorredirect.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
extorder.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
extutil.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
fbamend.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
fbconduit.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
fbhistedit.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
githelp.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
gitlookup.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
gitrevset.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
grepdiff.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
inhibitwarn.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
journal.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
mergedriver.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
morestatus.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
nointerrupt.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
patchpython.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
perftweaks.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
phabdiff.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
phabstatus.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
phrevset.py phrevset: do not depend on hgsubversion 2016-07-20 20:09:29 +01:00
pullcreatemarkers.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
pushrebase.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
pushvars.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
rage.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
reset.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
sampling.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
show.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
simplecache.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
smartlog.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
sparse.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
statprof.py statprof: change the hotpath to be less biased towards IO 2016-07-20 13:41:35 -07:00
statprofext.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
tweakdefaults.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00
upgradegeneraldelta.py hgext: move single file extensions to hgext3rd 2016-07-08 13:15:42 +01:00