From d91872a864215e07e215cea80a8201572a0ebdeb Mon Sep 17 00:00:00 2001 From: Miki Rozloznik Date: Mon, 3 Feb 2025 11:44:01 +0100 Subject: [PATCH] Add new alternative to '--profile' argument in test_perf.sh --- scripts/test_perf.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/test_perf.sh b/scripts/test_perf.sh index c92cf4cb0..f011bd117 100755 --- a/scripts/test_perf.sh +++ b/scripts/test_perf.sh @@ -1035,15 +1035,15 @@ Description: Runs performance tests on given zserio sources with zserio release compiled in release-ver directory. Usage: - $0 [-h] [-e] [-p] [-o ] [-d ] [-t ] -[n ] [-c ] - generator... -s test.zs -b test.Blob -f blob.bin + $0 [-h] [-e] [-p] [-r] [-l] [-o ] [-d ] [-t ] -[n ] [-c ] + target... -s -b [-f | -j ] Arguments: -h, --help Show this help. -e, --help-env Show help for enviroment variables. -p, --purge Purge test build directory. -r, --run-only Run already compiled PerformanceTests again. - --profile Run the test in profiling mode and produce profiling data. + -l, --profile Run the test in profiling mode and produce profiling data. -o , --output-directory Output directory where tests will be run. -d , --source-dir @@ -1056,10 +1056,12 @@ Arguments: Test configuration: READ (default), WRITE, READ_WRITE. -s , --source Main zserio source. - -b , --blob-name + -b , --blob-name Full name of blob to run performance tests on. - -f , --blob-file + -f , --blob-file Path to the blobfile. + -j , --json-file + Path to the JSON file. generator Specify the generator to test. Generator can be: @@ -1242,7 +1244,7 @@ parse_arguments() shift ;; - "--profile") + "-l" | "--profile") eval ${SWITCH_PROFILE_OUT}=1 shift ;;