Skip to content

Commit

Permalink
modify pprof report path format
Browse files Browse the repository at this point in the history
  • Loading branch information
aressu1985 committed Oct 11, 2023
1 parent f0de5ac commit f8b0bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pprof.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ ! -d ${WORKSPACE}/report/prof/${SERVER} ] ; then
mkdir ${WORKSPACE}/report/prof/${SERVER}
fi

time=`date +'%Y-%m-%d_%H:%M:%S'`
time=`date +'%Y-%m-%d_%H-%M-%S'`
mkdir -p ${WORKSPACE}/report/prof/${SERVER}/${time}
curl http://${SERVER}:${PORT}/debug/pprof/goroutine?debug=2 -o ${WORKSPACE}/report/prof/${SERVER}/${time}/goroutine.log
curl http://${SERVER}:${PORT}/debug/pprof/trace?seconds=30 -o ${WORKSPACE}/report/prof/${SERVER}/${time}/trace.out
Expand Down

0 comments on commit f8b0bcb

Please sign in to comment.