mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added logging of regexp cache size.
This commit is contained in:
parent
d816bc6a68
commit
077fcd8d7e
@ -35,8 +35,9 @@ Module for general worldly stuff, like global variables and whatnot.
|
|||||||
|
|
||||||
import fix
|
import fix
|
||||||
|
|
||||||
import os
|
|
||||||
import gc
|
import gc
|
||||||
|
import os
|
||||||
|
import sre
|
||||||
import time
|
import time
|
||||||
import types
|
import types
|
||||||
import atexit
|
import atexit
|
||||||
@ -90,6 +91,7 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
|
|||||||
debug.msg('Uncollectable garbage: %s' % gc.garbage, 'normal')
|
debug.msg('Uncollectable garbage: %s' % gc.garbage, 'normal')
|
||||||
if 'noflush' not in tempvars:
|
if 'noflush' not in tempvars:
|
||||||
flush()
|
flush()
|
||||||
|
debug.msg('Regexp cache size: %s' % len(sre._cache), 'verbose')
|
||||||
msg = '%s upkeep ran.' % time.strftime(conf.logTimestampFormat)
|
msg = '%s upkeep ran.' % time.strftime(conf.logTimestampFormat)
|
||||||
debug.msg(msg, 'verbose')
|
debug.msg(msg, 'verbose')
|
||||||
return collected
|
return collected
|
||||||
|
Loading…
Reference in New Issue
Block a user