blob: b459da521d04ff4c3557c38450009f340cf3c0d2 [file] [log] [blame]
#!/bin/bash
# Run args as command, but run memprofile and then pprof to capture test memprofile output
mpf="${BENT_PROFILES}/${BENT_BINARY}_${BENT_I}.mprof"
mkdir -p ${BENT_PROFILES}
"$@" -test.memprofile="$mpf"
echo memprofile in "$mpf"
go tool pprof --alloc_space --text --cum --nodecount=20 "$mpf"