diff mercurial/configitems.py @ 40400:db0dba2d157d

profiling: move default mode to "real" time Mercurial operations involve a lot of disks or network access. These impact command runtime significantly and it seems important to report them in our default profiling output. Having the right default means that we don't forget them when asking people to produces profiling traces or when doing profiling ourselves. Moving to "real time" by default will remove the need to think about activating it on most occasions. The "CPU" time-based profiling is still accessible when necessary.
author Boris Feld <boris.feld@octobus.net>
date Sat, 18 Aug 2018 01:44:38 +0200
parents af62936c2508
children 89703e6151e7 ab09e797fbed
line wrap: on
line diff
--- a/mercurial/configitems.py	Fri Oct 05 23:40:12 2018 +0800
+++ b/mercurial/configitems.py	Sat Aug 18 01:44:38 2018 +0200
@@ -923,7 +923,7 @@
     default='hotpath',
 )
 coreconfigitem('profiling', 'time-track',
-    default='cpu',
+    default='real',
 )
 coreconfigitem('profiling', 'type',
     default='stat',