Make profiling mode really enforce singlethreading
A typo was preventing profiling mode to really enable singlethreading mode. Fixing the unfortunate typo of mine makes it work. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
d05162675c
commit
2ab51e6855
@ -21,6 +21,7 @@ Bug Fixes
|
|||||||
|
|
||||||
* Fix regression (UIBase is no more).
|
* Fix regression (UIBase is no more).
|
||||||
|
|
||||||
|
* Make profiling mode really enforce single-threading
|
||||||
|
|
||||||
Pending for the next major release
|
Pending for the next major release
|
||||||
==================================
|
==================================
|
||||||
|
@ -169,7 +169,7 @@ class OfflineImap:
|
|||||||
if options.profiledir:
|
if options.profiledir:
|
||||||
if not options.singlethreading:
|
if not options.singlethreading:
|
||||||
logging.warn("Profile mode: Forcing to singlethreaded.")
|
logging.warn("Profile mode: Forcing to singlethreaded.")
|
||||||
options.singlethreaded = True
|
options.singlethreading = True
|
||||||
profiledir = options.profiledir
|
profiledir = options.profiledir
|
||||||
os.mkdir(profiledir)
|
os.mkdir(profiledir)
|
||||||
threadutil.setprofiledir(profiledir)
|
threadutil.setprofiledir(profiledir)
|
||||||
|
Loading…
Reference in New Issue
Block a user