Skip to content

Commit

Permalink
Add custom gRPC url and port argument
Browse files Browse the repository at this point in the history
  • Loading branch information
uppalutkarsh authored Dec 28, 2023
1 parent b09488d commit 0b64483
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/c++/perf_analyzer/docs/examples/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def summarize_profile_results(args, prompts):

def profile(args, export_file):
command = (
f"perf_analyzer -m {args.model} -i grpc --async --streaming "
f"perf_analyzer -m {args.model} -u {args.url} -i grpc --async --streaming "
f"--input-data={INPUT_FILENAME} "
f"--profile-export-file={export_file} "
)
Expand Down Expand Up @@ -645,5 +645,12 @@ def main(args):
action="store_true",
help="Whether to stop streaming the model outputs.",
)
parser.add_argument(
"-u",
"--url",
type=str,
default="localhost:8001",
help="gRPC end point URL",
)
args = parser.parse_args()
main(args)

0 comments on commit 0b64483

Please sign in to comment.