From 98ebbd5318cd963e0247d2f135ce7d22df0ff23a Mon Sep 17 00:00:00 2001 From: CalvinNeo Date: Thu, 11 Jul 2024 15:35:00 +0800 Subject: [PATCH] add prof Signed-off-by: CalvinNeo --- embed/templates/scripts/run_tiflash.sh.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/embed/templates/scripts/run_tiflash.sh.tpl b/embed/templates/scripts/run_tiflash.sh.tpl index ed2da18516..97729b7f39 100644 --- a/embed/templates/scripts/run_tiflash.sh.tpl +++ b/embed/templates/scripts/run_tiflash.sh.tpl @@ -9,6 +9,7 @@ export RUST_BACKTRACE=1 export TZ=${TZ:-/etc/localtime} export LD_LIBRARY_PATH={{.DeployDir}}/bin/tiflash:$LD_LIBRARY_PATH +export MALLOC_CONF="prof:true,prof_active:false" {{- if .RequiredCPUFlags }} if [ -f "/proc/cpuinfo" ]; then