Adding options to generate diff files to plan comparison script (#7349)
The script used in pipelines that search for explain plan changes lists those queries that have cost, row or plan changes. In many cases the user will want to investigate those changes further. A new set of options generates two directories that are easy to compare, one contains the baseline plans, one file per plan, and the other contains the changed plans of the test. $ ~/workspace/gpdb/concourse/scripts/perfsummary.py --help usage: perfsummary.py [-h] [--baseLog BASELOG] [--diffDir DIFFDIR] [--diffThreshold DIFFTHRESHOLD] [--diffLevel DIFFLEVEL] [log_file] Summarize the test suite execute and explain log positional arguments: log_file log file with explain/execute output optional arguments: -h, --help show this help message and exit --baseLog BASELOG specify a log file from a base version to compare to --diffDir DIFFDIR request diff files to be created and specify a directory to place diffs into --diffThreshold DIFFTHRESHOLD specify a numerical threshold to record plan diffs with a performance regression of more than n percent --diffLevel DIFFLEVEL specify which diff files to generate: 1 = all diffs, 2 = ignore cost diffs, 3 = plan diffs only
Showing
想要评论请 注册 或 登录