waf: add support for thread statistics

This commit is contained in:
Andy Piper 2021-04-15 18:43:08 +01:00 committed by Andrew Tridgell
parent 5eca0c61c4
commit 0726870e6f
1 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,11 @@ def options(opt):
action='store_true',
default=False,
help='enable malloc guard regions.')
g.add_option('--enable-stats',
action='store_true',
default=False,
help='enable OS level thread statistics.')
g.add_option('--bootloader',
action='store_true',
@ -289,6 +294,7 @@ def configure(cfg):
cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts
cfg.env.BOOTLOADER = cfg.options.bootloader
cfg.env.ENABLE_MALLOC_GUARD = cfg.options.enable_malloc_guard
cfg.env.ENABLE_STATS = cfg.options.enable_stats
cfg.env.OPTIONS = cfg.options.__dict__