History

perf scripts python: Add support for input args in gecko script

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.

Anup Sharma committed 3 years ago

Commit 43803cb1 parent f85d1201 file · +5 −1Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/bin/gecko-report+5−1
@@ -1,3 +1,7 @@
1#!/bin/bash1#!/bin/bash
2# description: create firefox gecko profile json format from perf.data2# description: create firefox gecko profile json format from perf.data
3perf script "$@" -s "$PERF_EXEC_PATH"/scripts/python/gecko.py3if [ "$*" = "-i -" ]; then
4perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py
5else
6perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py -- "$@"
7fi