diff options
Diffstat (limited to 'build/SConstruct')
-rw-r--r-- | build/SConstruct | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/SConstruct b/build/SConstruct index 5c4ae94a1..3d7db1db2 100644 --- a/build/SConstruct +++ b/build/SConstruct @@ -101,12 +101,23 @@ configs_map = { 'KERNEL' : KernelConfig } +# Enable detailed full-system binning. +def MeasureOpt(env): + env.Replace(USE_MYSQL = True) + env.Append(CPPDEFINES = 'FS_MEASURE') + +# Enable MySql database output for stats. +def MySqlOpt(env): + env.Replace(USE_MYSQL = True) + # Disable FastAlloc object allocation. def NoFastAllocOpt(env): env.Append(CPPDEFINES = 'NO_FAST_ALLOC') # Configuration options map. options_map = { + 'MEASURE' : MeasureOpt, + 'MYSQL' : MySqlOpt, 'NO_FAST_ALLOC' : NoFastAllocOpt } |