mercurial/profiling.py
branchstable
changeset 40418 89703e6151e7
parent 40192 b8f6a99ad89b
child 42423 0ae593e791fb
--- a/mercurial/profiling.py	Wed Oct 17 14:47:01 2018 +0200
+++ b/mercurial/profiling.py	Wed Oct 24 22:24:10 2018 -0400
@@ -101,7 +101,8 @@
     else:
         ui.warn(_("invalid sampling frequency '%s' - ignoring\n") % freq)
 
-    track = ui.config('profiling', 'time-track')
+    track = ui.config('profiling', 'time-track',
+                      pycompat.iswindows and 'cpu' or 'real')
     statprof.start(mechanism='thread', track=track)
 
     try: