Skip to content

Commit

Permalink
Rename ci_run to retainOnlyTop
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Nov 17, 2021
1 parent 7fd043e commit d664d3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coreclr/scripts/superpmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
asm_diff_parser.add_argument("-diff_jit_option", action="append", help="Option to pass to the diff JIT. Format is key=value, where key is the option name without leading COMPlus_...")
asm_diff_parser.add_argument("-tag", help="Specify a word to add to the directory name where the asm diffs will be placed")
asm_diff_parser.add_argument("-metrics", action="append", help="Metrics option to pass to jit-analyze. Can be specified multiple times, or pass comma-separated values.")
asm_diff_parser.add_argument("-ci_run", action="store_true", help="Is this a CI-run? If yes, it will pass a flag to jit-analyze to delete unnecessary .dasm files.")
asm_diff_parser.add_argument("-retainOnlyTopFiles", action="store_true", help="Is passed, it will retain only top .dasm files that has largest diffs and delete remaining files.")

# subparser for upload
upload_parser = subparsers.add_parser("upload", description=upload_description, parents=[core_root_parser, target_parser])
Expand Down Expand Up @@ -1629,7 +1629,7 @@ async def create_one_artifact(jit_path: str, location: str, flags) -> str:
summary_file_info = ( mch_file, md_summary_file )
all_md_summary_files.append(summary_file_info)
command = [ jit_analyze_path, "--md", md_summary_file, "-r", "--base", base_asm_location, "--diff", diff_asm_location ]
if self.coreclr_args.ci_run:
if self.coreclr_args.retainOnlyTopFiles:
command += [ "-retainOnlyTopFiles" ]
if self.coreclr_args.metrics:
command += [ "--metrics", ",".join(self.coreclr_args.metrics) ]
Expand Down Expand Up @@ -3265,9 +3265,9 @@ def verify_replay_common_args():
"Unable to set metrics.")

coreclr_args.verify(args,
"ci_run",
"retainOnlyTopFiles",
lambda unused: True,
"Unable to set ci_run.")
"Unable to set retainOnlyTopFiles.")

process_base_jit_path_arg(coreclr_args)

Expand Down

0 comments on commit d664d3f

Please sign in to comment.