17 Star 56 Fork 8

深度社区/unilang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
valgrind.sh 865 Bytes
一键复制 编辑 原始数据 按行查看 历史
He Bin 提交于 2023-07-24 14:23 . valgrind.sh: Fixed output splitting.
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2022-2023 UnionTech Software Technology Co.,Ltd.
# Requires: valgrind.
# Test script for running the interpreter in release mode using valgrind.
# The default tool is callgrind.
: "${CONF:="release"}"
: "${OUTPUT:="build/.$CONF/callgrind.out"}"
: "${LOGOPT:="--log-file=build/.$CONF/callgrind.log"}"
: "${TOOLOPT:="--tool=callgrind --callgrind-out-file=$OUTPUT --dump-instr=yes \
--collect-jumps=yes"}"
: "${UNILANG:="build/.$CONF/unilang.exe"}"
echo 'Ready to run the command for Unilang interpreter "'"$UNILANG"'".'
echo "Using valgrind options: '$LOGOPT $TOOLOPT'."
echo "Using interpreter options: '$*'."
# XXX: Value of several variables may contain whitespaces.
# shellcheck disable=2086
valgrind $LOGOPT $TOOLOPT --fullpath-after= "$UNILANG" "$@"
echo 'Output file is placed in "'"$OUTPUT"'".'
echo 'Done.'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linuxdeepin/unilang.git
git@gitee.com:linuxdeepin/unilang.git
linuxdeepin
unilang
unilang
master

搜索帮助