core: add helper for computing stats; use it in modules
This commit is contained in:
parent
a94b64c273
commit
1cc4eb5d8d
10 changed files with 79 additions and 3 deletions
|
@ -133,6 +133,10 @@ def modules_check(args):
|
|||
stats = getattr(mod, 'stats', None)
|
||||
if stats is None:
|
||||
continue
|
||||
from . import common
|
||||
common.QUICK_STATS = True
|
||||
# todo make it a cmdline option..
|
||||
|
||||
try:
|
||||
res = stats()
|
||||
except Exception as ee:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue