Skip to content

Commit 37bc449

Browse files
make traivs happy
1 parent 28ebdb8 commit 37bc449

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Prerequisite:
99
2. DATAFILES_DIR env var has to be set to point to the path where 100_entities.json is located
1010

1111
To get profiles:
12-
* 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.
13-
* 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.
12+
* CPU profile. Execute: `go build -ldflags "-X main.ProfileMode=cpu" benchmark/main.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.
13+
* Memory profile. Execute: `go build -ldflags "-X main.ProfileMode=mem" benchmark/main.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.

examples/main_profile_feature.go renamed to examples/benchmark/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// to run the CPU profiling: go build -ldflags "-X main.ProfileMode=mem" main_profile_feature.go && ./main_profile_feature
1+
// to run the CPU profiling: go build -ldflags "-X main.ProfileMode=mem" main.go && ./main
22

33
package main
44

0 commit comments

Comments
 (0)