mirror of https://github.com/ArduPilot/ardupilot
waf: add support for thread statistics
This commit is contained in:
parent
5eca0c61c4
commit
0726870e6f
6
wscript
6
wscript
|
@ -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__
|
||||
|
||||
|
|
Loading…
Reference in New Issue