Skip to content

Commit

Permalink
Merge pull request #470 from perftool-incubator/endpoints-together
Browse files Browse the repository at this point in the history
get full endpoints block
  • Loading branch information
k-rister authored Feb 28, 2024
2 parents b8e6c68 + 3af75be commit b145d8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion util/blockbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,12 @@ def main():
match args.config:
case "benchmarks":
output = get_bench_ids(input_json, args.config)
case "endpoints" | "endpoint" | "tags" | "run-params":
case "endpoints":
# output is a stream of all endpoints
output=""
for idx in range(0, len(input_json["endpoints"])):
output += json_to_stream(input_json, "endpoints", idx) + " "
case "endpoint" | "tags" | "run-params":
# output is a stream of the endpoint or tags or run-params
output = json_to_stream(input_json, args.config, args.index)
case default:
Expand Down

0 comments on commit b145d8a

Please sign in to comment.