Refactor readme
This commit is contained in:
parent
96b52a1583
commit
6840bf6859
1 changed files with 4 additions and 6 deletions
10
README.md
10
README.md
|
@ -1,18 +1,16 @@
|
||||||
# Profiling
|
# Profiling
|
||||||
|
|
||||||
```
|
## Compile it
|
||||||
# Compile it
|
|
||||||
go build
|
go build
|
||||||
|
|
||||||
# Test it
|
## Test it
|
||||||
go test
|
go test
|
||||||
|
|
||||||
# Profile CPU
|
## Profile CPU
|
||||||
go test -cpuprofile cpu.prof -bench .
|
go test -cpuprofile cpu.prof -bench .
|
||||||
|
|
||||||
# Visualize profiled data
|
## Visualize profiled data
|
||||||
go tool pprof cpu.prof
|
go tool pprof cpu.prof
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue