Refines the argument handling mechanism in the "gecko-report" script to enable better compatibility and improved user experience. The script now differentiates between scenarios where arguments are provided for record and report cases where gecko.py arguments are passed.
Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all
Unified · Split
| @@ -1,3 +1,7 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # description: create firefox gecko profile json format from perf.data | 2 | # description: create firefox gecko profile json format from perf.data |
| 3 | perf script "$@" -s "$PERF_EXEC_PATH"/scripts/python/gecko.py | 3 | if [ "$*" = "-i -" ]; then |
| 4 | perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py | ||
| 5 | else | ||
| 6 | perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py -- "$@" | ||
| 7 | fi | ||