From df5cd132bea7c4e18548d2460db91fec23f03645 Mon Sep 17 00:00:00 2001 From: zhanglistar Date: Wed, 8 Nov 2023 15:41:33 +0800 Subject: [PATCH] Update UsingGperftoolsInCH.md --- docs/developers/UsingGperftoolsInCH.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/developers/UsingGperftoolsInCH.md b/docs/developers/UsingGperftoolsInCH.md index ce51440f0555..f0d5c720b30b 100644 --- a/docs/developers/UsingGperftoolsInCH.md +++ b/docs/developers/UsingGperftoolsInCH.md @@ -18,6 +18,8 @@ export LD_PRELOAD=$tcmalloc_path,libch.so # load the library in the driver --conf spark.executorEnv.HEAPPROFILE=/tmp/gluten_heap_perf # set the heap profile path, you can change to CPUPROFILE for CPU profiling ``` +For thrift server on local machine, note using `export LD_PRELOAD="$tcmalloc_path libch.so" # load the library in the driver` to preload dynamic libraries. + ## Analyze the result We can get the result in the path we set in the previous step. For example, we can get the result in `/tmp/gluten_heap_perf`. We can use the following website to analyze the result: https://gperftools.github.io/gperftools/heapprofile.html