File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 log_cmd=" logfile $logfile "
6262fi
6363
64+ massif_logpath=" logs/massif_${COMMIT_HASH:- null} _$( date ' +%F_%H-%M' ) "
65+
66+ # traditionally massif also includes the pid with %p placeholder
67+ # but then it becomes tricky for us to log the logpath
68+ # because getting the pid only works at runtime
69+ # we can not use $$ because its a wrapped launcher
70+ # there should probably be a proper launch_cmd() helper
71+ # that can pritty print args and handle pid and exit codes
72+ # massif_logpath="${massif_logpath}.%p"
73+
6474read -rd ' ' run_cmd << EOF
6575$CFG_ENV_RUNTIME valgrind \
6676 --tool=massif \
77+ --massif-out-file=$massif_logpath \
6778 ./$CFG_BIN -f autoexec.cfg "$log_cmd ;#sid:$SERVER_UUID :valgrind.sh"
6879EOF
6980
@@ -83,4 +94,9 @@ if [ "$git_patches" != "" ]
8394then
8495 log " applied patches: $git_patches "
8596fi
97+ log " created massif report at $massif_logpath "
98+ log " you can inspect it using this command:"
99+ echo " "
100+ echo " $( tput bold) ms_print $massif_logpath $( tput sgr0) "
101+ echo " "
86102
You can’t perform that action at this time.
0 commit comments