mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 14:33:53 +00:00
add profiling doc
This commit is contained in:
parent
2e39200214
commit
acf213b991
13
doc/topics/profile.md
Normal file
13
doc/topics/profile.md
Normal 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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user