bbgo_origin/doc/topics/profile.md

14 lines
275 B
Markdown
Raw Normal View History

2024-11-15 09:50:16 +00:00
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
```