summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur <t.mustafin@partner.samsung.com>2020-08-10 17:20:51 +0300
committerAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>2020-08-11 13:02:46 +0300
commitc520fab2ef349a37c9fd8fafa14f8f87935251fa (patch)
treeb2a01497e1786f5a3ab80fa9074feb3460192c63
parent352bb02bc3ed52bf8fc385795410f7f4726b6dd6 (diff)
downloadheaptrack-c520fab2ef349a37c9fd8fafa14f8f87935251fa.tar.gz
heaptrack-c520fab2ef349a37c9fd8fafa14f8f87935251fa.tar.bz2
heaptrack-c520fab2ef349a37c9fd8fafa14f8f87935251fa.zip
Show filename in GUI headersubmit/tizen/20200821.032433
Signed-off-by: Timur <t.mustafin@partner.samsung.com>
-rwxr-xr-xscripts/docker/heaptrack-gui.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/docker/heaptrack-gui.sh b/scripts/docker/heaptrack-gui.sh
index 022e607..32becdf 100755
--- a/scripts/docker/heaptrack-gui.sh
+++ b/scripts/docker/heaptrack-gui.sh
@@ -3,15 +3,16 @@
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
RES_FILE=$1
+BASENAME=`basename "$RES_FILE"`
touch $XAUTH
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run -it \
--volume=$XSOCK:$XSOCK:rw \
--volume=$XAUTH:$XAUTH:rw \
- --volume=$RES_FILE:/res.gz:ro \
+ --volume=$RES_FILE:/$BASENAME:ro \
--env="XAUTHORITY=${XAUTH}" \
--env="DISPLAY" \
--user="docker-user" \
heaptrack:latest \
- /heaptrack/build-x64/bin/heaptrack_gui ${@:2:2} /res.gz 2>gui_malloc.srderr
+ /heaptrack/build-x64/bin/heaptrack_gui ${@:2:2} /$BASENAME 2>gui_malloc.srderr