diff options
Diffstat (limited to 'bin/analyze-kconfig.py')
-rwxr-xr-x | bin/analyze-kconfig.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index b95aded..cbf16e0 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -74,6 +74,11 @@ def main(): help="Build decision tree without checking for analytic functions first. Use this for large kconfig files.", ) parser.add_argument( + "--skip-param-stats", + action="store_true", + help="Do not compute param stats that are required for RMT. Use this for large kconfig files.", + ) + parser.add_argument( "--max-std", type=str, metavar="VALUE_OR_MAP", @@ -172,6 +177,10 @@ def main(): args = parser.parse_args() + if args.skip_param_stats and not args.force_tree: + print("--skip-param-stats requires --force-tree", file=sys.stderr) + sys.exit(1) + if args.log_level: numeric_level = getattr(logging, args.log_level.upper(), None) if not isinstance(numeric_level, int): @@ -299,6 +308,7 @@ def main(): parameter_names, force_tree=args.force_tree, max_std=max_std, + compute_stats=not args.skip_param_stats, ) constructor_duration = time.time() - constructor_start logging.debug(f"AnalyticModel(...) took {constructor_duration : 7.1f} seconds") @@ -348,6 +358,7 @@ def main(): parameter_names, force_tree=args.force_tree, max_std=max_std, + compute_stats=not args.skip_param_stats, ) xv.parameter_aware = args.parameter_aware_cross_validation else: |