From acf213b9918c08243df01f399fa37821601663b3 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 15 Nov 2024 17:50:16 +0800 Subject: [PATCH] add profiling doc --- doc/topics/profile.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/topics/profile.md diff --git a/doc/topics/profile.md b/doc/topics/profile.md new file mode 100644 index 000000000..98bb1c1b0 --- /dev/null +++ b/doc/topics/profile.md @@ -0,0 +1,13 @@ +Profiling +=================== + +```shell +dotenv -f .env.local -- go run -tags pprof ./cmd/bbgo run \ + --config ./makemoney-btcusdt.yaml \ + --cpu-profile makemoney.pprof \ + --enable-profile-server +``` + +```shell +go tool pprof http://localhost:6060/debug/pprof/heap +```