profiling: move default mode to "real" time
authorBoris Feld <boris.feld@octobus.net>
Sat, 18 Aug 2018 01:44:38 +0200
changeset 40400 db0dba2d157d
parent 40399 4ab6e7b4fe8a
child 40401 6bd477ee7294
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.
mercurial/configitems.py
--- 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',