From 1f5d7b83f8f94503db91299b6447afb167dc3af9 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh <80243668+agnxsh@users.noreply.github.com> Date: Sat, 7 Sep 2024 21:15:23 +0530 Subject: [PATCH] Fix profiling instructions for Linux (#506) --- src/PROFILE.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/PROFILE.md b/src/PROFILE.md index e0cdb9d11..b3e21cb87 100644 --- a/src/PROFILE.md +++ b/src/PROFILE.md @@ -10,8 +10,14 @@ took, but it will help you determine which functions are the most expensive. On Linux (Debian), you need to install: ``` -sudo apt install gperftools graphviz +sudo apt install libgoogle-perftools-dev graphviz ``` +Assuming you have Go installed, get `pprof` from: +``` +go install github.com/google/pprof@latest +``` +Depending on your shell, edit the corresponding configuration file to +add the Go binary path (`$HOME/go/bin`) to your `PATH`. On macOS, you need to install (via [homebrew](https://brew.sh)): ```