Skip to content

Commit 28ebdb8

Browse files
no message
1 parent 2c33873 commit 28ebdb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ Prerequisite:
88
1. `go get github.com/pkg/profile`
99
2. DATAFILES_DIR env var has to be set to point to the path where 100_entities.json is located
1010

11+
To get profiles:
1112
* CPU profile. Execute: `go build -ldflags "-X main.ProfileMode=cpu" main_profile_feature.go && ./main_profile_feature`. It will create cpu.pprof file in your current directory. Then run: `go tool pprof -http=:8080 cpu.pprof` and profile cpu usage using web browser.
1213
* Memory profile. Execute: `go build -ldflags "-X main.ProfileMode=mem" main_profile_feature.go.go && ./main_profile_feature`. It will create mem.pprof file in your current directory. Then run: `go tool pprof -http=:8080 mem.pprof` and profile memory using browser.

0 commit comments

Comments
 (0)