Skip to content

Commit

Permalink
Update UsingGperftoolsInCH.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglistar authored Nov 8, 2023
1 parent c53691a commit df5cd13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/developers/UsingGperftoolsInCH.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df5cd13

Please sign in to comment.