add profiling doc

This commit is contained in:
c9s 2024-11-15 17:50:16 +08:00
parent 2e39200214
commit acf213b991
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

13
doc/topics/profile.md Normal file
View File

@ -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
```