Add compiler profiling
This commit is contained in:
parent
f1a8610e27
commit
b0083d99ef
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
go test -bench=. -benchmem -cpuprofile cpu_profile.out
|
go test -bench=. -benchmem -cpuprofile cpu.out
|
||||||
go tool pprof cpu_profile.out
|
go tool pprof -cum cpu.out
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
go test -bench=. -benchmem -memprofile mem_profile.out
|
go test -bench=. -benchmem -memprofile mem.out
|
||||||
go tool pprof mem_profile.out
|
go tool pprof -cum mem.out
|
Loading…
Reference in New Issue