Support saving the tnp recalculated file in profile testing

This commit is contained in:
bgbsww
2024-05-09 07:01:31 -04:00
committed by Chris Hennes
parent 2f9b97ce3a
commit 0095e52466
3 changed files with 11 additions and 1 deletions

View File

@@ -7,9 +7,10 @@
notnp=<Path to your first executable to profile goes here> #<dir>/bin/FreeCAD${cmd}
tnp=<Path to your second executable to profile goes here> #<dir/bin/FreeCAD${cmd}
results="results.txt" # File to append measurements to. We do not clear so xargs works on script
save="--save" # or "" Whether to save the resulting file from the tnp executable for further testing.
perf record -o "$1.perf" $notnp -t TestPerf --pass "$@"
perf record -o "$1.tnp.perf" $tnp -t TestPerf --pass "$@"
perf record -o "$1.tnp.perf" $tnp -t TestPerf --pass "$save" "$@"
# For interactive walking of the details using perf:
#perf report -i $1.perf